Banketeshvar Narayan
Banketeshvar Narayan

Reputation: 3899

TFS 2010- Getting a specific version of a file from checked-in task

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.

Upvotes: 3

Views: 1300

Answers (1)

Snorre
Snorre

Reputation: 954

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.

enter image description here 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

Upvotes: 3

Related Questions