How can I retrieve a deleted file in TFS 2010?
I had a Visual Studio 2010 project checked into TFS. I deleted a file locally (.edmx
). Now, I want to retrieve that file.
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.
Restore items deleted from Visual Studio Files deleted through Solution Explorer are moved to the Recycle Bin on your computer, where they can be restored.
To recover a deleted file or project: In Visual SourceSafe Explorer, on the File menu, click Properties. Click the Deleted Items tab. Select the file(s) or project that you want to recover. Click Recover.
Any member of the Teams channel can recover content from the SharePoint bin. Any other member of the same SharePoint file will have the same view. This means you can recover files deleted by other users – and they can recover files you've deleted.
If the file still exists in TFS, then you locate the file and do Get Latest
. This will bring the file back to your local machine.
EDIT
Maybe this link will help you:
How to retrieve a deleted file in TFS
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With