Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to recover a deleted branch in TFS?

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?

like image 677
Oded Avatar asked Sep 08 '08 10:09

Oded


People also ask

What work is restored when the deleted branch is recovered?

What work is restored when the deleted branch is recovered? The files which were stashed and saved in the stash index list will be recovered back. Any untracked files will be lost. Also, it is a good idea to always stage and commit your work or stash them.

How do I restore a deleted directory in TFS?

In Team Explorer (in Visual Studio): Tools | Options | Source Control | Visual Studio Team Foundation Server and select Show Deleted Items... Then in source control explorer you'll see the items greyed out. You can right click on them and Undelete.


1 Answers

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"

like image 120
fuzzbone Avatar answered Sep 20 '22 22:09

fuzzbone