TF GET (command-line)
Parameters#
Parameter | Details |
---|---|
/version | The version to retrieve. View remarks. |
/all | Forces all files to be retrieved, not just those that are out-of-date. |
/overwrite | Overwrites writable files that are not checked out |
/force | Combines /all and /overwrite |
/preview | Displays what would occur, without actually performing the Get operation. |
/recursive | Recursively retrieves all items that match your itemspec. |
/noprompt | Suppresses any dialog boxes that would otherwise be displayed during this operation. |
/remap | Updates local mapping on the server and re-downloads the file faster if you already have downloaded the same file from another branch. |
/login | Specifies the user name and password to authenticate the user with Team Foundation Server. |
Remarks#
-
The parameter /version assumes Latest if no parameter provided and accepts
a.Changesets (“C<ChangeSetID>“)
b.Date/Time (“D<DateTime_UTC>“)
c.Label (“L<Label>“)
d.Latest Version (“T”)
e.Workspace Version (“W<workspacename;owner>”).
-
Parameters as of TFS 2010
-
Retrieved and edited from https://msdn.microsoft.com/en-us/library/fx7sdeyf(v=vs.100).aspx at 2016-07-22 14:48UTC
Getting Files
tf get /all /recursive $/
Gets and replaces all files and directories from the last version available
Get files, even if TFS believes the workspace is upto date
tf.exe get /all /recursive /force /overwrite $/
Gets all files and directories, and will replace any files that are not currently checked out in the workspace (including files that have been edited).