5

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)

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Steve's a D
  • 3,801
  • 10
  • 39
  • 60

1 Answers1

3

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

jessehouwing
  • 106,458
  • 22
  • 256
  • 341
  • tf.exe rollback was what I was looking for. Kind of disappoined I can't do it from the GUI w/o power tools. – Steve's a D Feb 07 '13 at 20:55
  • You do get the functionality with a newer version of Visual Studio, against an older TFS. It's really the Visual Studio version that governs this. – jessehouwing Feb 08 '13 at 09:16
  • 1
    So if I download vs2012, even while using tfs 2008, I can do this from the GUI? Neat, thanks! – Steve's a D Feb 08 '13 at 13:42