Click here to Skip to main content
15,888,283 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,

I have done 2 - 3 check in of multiple files in TFS .

Now I want to Roll back to 2 step back.

I would like to know how can I do in Visual studio 2010/2013.


Thanks
Asutosha Sarangi
Posted

1 solution

Please follow below steps. (assuming you are much familiar with TFS, else you will find these steps weired).

You can simply view the history of any one file you changed.
right click on that file's recent version to be rolled back and click to see the Change Set details.

Note down the changeset number.

Now in TFS Explorer, just right click on parent folder and click Get Specific Version.

This will bring one dialog with Version section, which displays Combobox to select which version you want to take. select ChangeSet from drop down and enter the change set number by reducing 1 from noted change set number.

this will get you required rolled back code.

PS. Make sure after you check ins nobody else checked in the same files, else you have to do all this exercise for individual files in your change sets.

Hope this helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900