TF GET (command-line)

Other topics

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

Parameters:

ParameterDetails
/versionThe version to retrieve. View remarks.
/allForces all files to be retrieved, not just those that are out-of-date.
/overwriteOverwrites writable files that are not checked out
/forceCombines /all and /overwrite
/previewDisplays what would occur, without actually performing the Get operation.
/recursiveRecursively retrieves all items that match your itemspec.
/nopromptSuppresses any dialog boxes that would otherwise be displayed during this operation.
/remapUpdates local mapping on the server and re-downloads the file faster if you already have downloaded the same file from another branch.
/loginSpecifies the user name and password to authenticate the user with Team Foundation Server.

Contributors

Topic Id: 3054

Example Ids: 10382,19846

This site is not affiliated with any of the contributors.