views:

964

answers:

3

I deleted a branch in TFS and just found out that I need the changes that were on it.

How do I recover the branch or the changes done on it?

+1  A: 

As described in the TFS FAQ:

Are Deletes physical or logical? Can accidental deletes be recovered?

Deletes are fully recoverable with the “undelete” operation. You wouldn’t want to do a SQL restore because that would roll back every change to the TFS in the time since the file was deleted.

Oded
+6  A: 

Specifically in Visual Studio go to "Tools-Options" then Select "Source Control-visual Studio Team Founation Server" and check the "Show deleted items in the Source Control explorer".

Having done that - you can then right click a folder and say "Undelete"

fuzzbone
A: 

Perfect cheers for that it helped a lot :)

Michal