Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Revert TFS branch to original

Tags:

branch

tfs

I'm using TFS. On my branch I checked in a bunch of changes, that I now want to undo.

I can click on the branch in TFS Source Control, and view history, and get the original branch, but when I check it out to edit... it reverts back to the branch that I boned.

I tried both "View History" then right clicking on orignal "create" branch and then "get this version"

And I also tried right clicking on the branch and "Get Specific Version".

I also tried deleting the local files for this branch.

How do I just get the original version?

(Note: Deleting + Recreating the branch is a huge process so I'd like to stay away from that)

like image 258
Steve's a D Avatar asked Oct 22 '22 17:10

Steve's a D


1 Answers

Depending on the version of TFS you're using and on whether you have the TFS power tools installed, you can either find it in the History Panel (under the Rollback item). You can always do it from the commandline using

tf.exe rollback

like image 166
jessehouwing Avatar answered Oct 25 '22 19:10

jessehouwing