The following example retrieves the latest version of 314.cs from the server. If you have pending changes against 314.cs, Team Foundation Server prompts you to resolve any conflicts.
C:\projects>tf get 314.cs
The following example retrieves version 8 of 1256.cs from the server.
Note: |
|---|
Using 1256.cs;8 is equivalent to using 1256.cs;C8. By default, the changeset version is used if you specify only a number after the semicolon.
|
The following example retrieves the latest versions of all uncloaked items from the server folder and subfolders to the C:\projects directory and creates local folders where they are required. For more information about how to cloak and uncloak folders, see Workfold Command.
The following examples provide alternative ways of retrieving the version of 1256.cs that was checked in with changeset 1999.
c:\projects>tf get /version:C1999 1256.cs
—or—
c:\projects>tf get 1256.cs;C1999
The following example retrieves the version of all uncloaked items from the server as they existed in the server when changeset 271 was created.
c:\projects>tf get /version:C271
The following example retrieves build42, labeled as “build42." This matches your workspace to the label as long as there are no pending changes. Any files not in the label are removed from the local disk.
c:\projects>tf get /version:Lbuild42
The following example retrieves the version on the server from a specific date and time.
c:\projects>tf get /version:D2008-01-21T16:00