Undeleting Source Control Files—Team Foundation Server
If you have a file marked as "Deleted" but then want to add it to source control, you can undelete the file, which then allows you to do this. You might encounter this situation if you rename a file and then create a new file with that name, or if you rename a file to the name of a previously deleted file.

- In one of the window panes (e.g., Content Explorer, Project Organizer, Pending Changes window pane), select the relevant file(s).
- Do one of the following, depending on the part of the user interface you are using:
Ribbon Select the Source Control ribbon. In the File section select Undelete.
- Right-Click If you have the Content Explorer, Project Organizer, or Pending Changes window pane open, right-click the file you want to undelete and select Source Control > Undelete.
- The Undelete dialog opens. Select the files you want to undelete.
- Click OK.