Quantcast
Channel: TFS – The Blog of Colin Angus Mackay
Viewing all articles
Browse latest Browse all 5

How to recover deleted files, folders and branches in TFS

$
0
0

In Visual Studio go to the menu item Tools–>Options…

Then navigate to the Source Control –> Visual Studio Team Foundation Server section.

In that section is a check box that says “Show deleted items in the Source Control Explorer”

Once you’ve ensured that the checkbox is checked, press “OK”

Then navigate to the Source Control Explorer and you’ll see that deleted files, folders and branches are now displayed with a large red cross next to them.

Right click the item you want to recover and select “Undelete” from the menu.

At this point Visual Studio stops responding to input. It displays a wait spinner briefly, but mostly it just looks like it has hung.

When Visual Studio does come back to life you can go to the Pending Changes to see the newly recovered files, folders, or branches.

If you are happy with this change, you can check it in to TFS as normal.


Filed under: Tip of the Day Tagged: Source Control, TFS, visual studio

Viewing all articles
Browse latest Browse all 5

Trending Articles