Quantcast
Viewing latest article 2
Browse Latest Browse All 5

How to recover deleted files, folders and branches in TFS

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

Image may be NSFW.
Clik here to view.

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”

Image may be NSFW.
Clik here to view.

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.

Image may be NSFW.
Clik here to view.

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.

Image may be NSFW.
Clik here to view.

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 Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing latest article 2
Browse Latest Browse All 5

Trending Articles