Friday, 20 September 2013

TFS - How to Restore Deleted Files

Have you ever wanted to find a deleted file in TFS and Restore/Undelete it? Is it possible? Yes. It is. Let me show in few quick steps how you can restore a deleted file in TFS using Visual Studio Source Control Explorer.

1. Your VS Source Control Explorer would normally look like below and will not show the deleted files.


2. Go to Tools --> Options in Visual Studio menu and open the options. Select Source Control --> Visual Studio Team Foundation Server and tick the option "Show deleted items in Source Control Explorer" and click OK.

  

3. Now you can see the deleted files appear in Source Control Explorer. Right click on the Folder/File you want to restore and click "Undelete" to get it restored.



No comments: