Team Foundation Server

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#

  1. 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>”).

  2. Parameters as of TFS 2010

  3. 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).


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow