Here’s what I do in Visual Studio 2012
(Note: I have the TFS Power Tools installed so if you don’t see the described options you may need to install them. http://visualstudiogallery.msdn.microsoft.com/b1ef7eb2-e084-4cb8-9bc7-06c3bad9148f )
If you are accessing the Source Control Explorer as a team project administrator (or at least someone with the “Undo other users’ changes” access right) you can do the following in Visual Studio 2012 to clear a lock and checkout.
- From the Source Control Explorer find the folder containing the locked file(s).
- Right-click and select Find then Find by Status…
- The “Find in Source Control” window appears
- Click the Find button
- A “Find in Source Control” tab should appear showing the file(s) that are checked out
- Right click the file you want to unlock
- Select Undo… from the context menu
- A confirmation dialog appears. Click the Yes button.
- The file should disappear from the “Find in Source Control” window.
The file is now unlocked.