How do I go back to check in what I did at the TFVC?

1

I need to go back in some check ins, I did not want to have to get the last valid code and check in over, but delete those entries in version control. Is it possible?

    
asked by anonymous 13.08.2014 / 06:19

1 answer

4

If your code is in TFVC, before there was a Rollback feature in Team Foundation Power Tools, it was moved to TF.exe!

To use:

tf rollback /changeset:changesetfrom~changesetto [itemspec] [/recursive]
[/lock:none|checkin|checkout] [/version:versionspec]
[/keepmergehistory] [/noprompt] [/login:username,[password]]

tf rollback /toversion:versionspec itemspec [/recursive] 
[/lock:none|checkin|checkout] [/version:versionspec]
[/keepmergehistory] [/noprompt] [/login:username,[password]]

To go back to a specific version the parameter that should be used is / toversion

Help for the command can be found here: link

You can also run VS.Net visually: link

p>     
13.08.2014 / 19:17