Geeks With Blogs

News




View Tarun Arora's profile on LinkedIn

profile for Tarun Arora at Stack Overflow, Q&A for professional and enthusiast programmers

Tarun Arora - Visual Studio ALM MVP ALM, Agile, Automation, Performance Testing, Software QA, Cloud, ...

Have you accidently deleted files from TFS and are looking at a way to undelete the file? You don’t have to undo your previous check in to get the files back, there is a simpler way.

01 – View Deleted items in Team Explorer

Have you been wondering how you can view deleted items in Team Explorer? Well, go to tools, options, Source Control. From Visual Studio Team Foundation check ‘show deleted items in the Source Control Explorer’. 

image

image

02 – Undelete files from TFS

Simply right click the deleted file or folder and from the context menu select ‘Undelete’. This will roll back the files to the version before the delete operation was committed on them. 

image

The undeleted changes now show up as pending changes in your workspace. You need to right click the folder and select Check In Pending changes from the context menu to restore the files.

image

Add a comment and check in the files back to TFS to undelete them

image

Right click the folder and view history. You’ll see both the check in that deleted the file/folder and the check in that restored it.

image

So, that’s how you can restoring deleted files in TFS… Nice and simple… Right? In love

Posted on Monday, November 26, 2012 7:59 PM TFS2010 , TFS Utilties , TFS2012 | Back to top


Comments on this post: How to undelete files in TFS

comments powered by Disqus

Copyright © Tarun Arora [Microsoft MVP] | Powered by: GeeksWithBlogs.net | Join free