35

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?

2 Answers 2

60

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"

6

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.