TFS 2010- Getting a specific version of a file fro

2019-07-01 10:50发布

问题:

How to get specific version of a file from checked-in task?

When I right click on a file and select history. It shows me “change set” and when right click on “change set” and select “get this version” then it takes other files also of that version. But I need to take specific version of only one file.

回答1:

if you right click on your file in source control explorer and select Advanced->Get Specific Version you can select which version of the file you want. you can search by changeset etc from there.

or by command line by date:

 tf.exe get c:\myproject\mybranch\myfile.txt /v:D"2013-11-23"

or by changeset number:

 tf.exe get c:\myproject\mybranch\myfile.txt /v:C12345

you can see the changeset numbers by the History command:

tf.exe history c:\myproject\mybranch\myfile.txt