TFS: Undoing a checkout that belongs to another user – via TFS Version Control and more
Posted by Jeroen Pluimers on 2010/07/01
I recently needed to undo a TFS checkout from a user on another workspace.
This particular user had an exclusive lock on the document, was scheduled to be away for considerable time, and I was supposed to finalize that document.
I know that performing the undo is not possible from the Visual Studio UI: you need use the TF command-line application for this kind of work.
Fiddling on my own with the TF undo syntax didn’t get me the results right away, so I was glad to find this “Undoing a checkout that belongs to another user” post by mrod (Mario Rodriguez) from Microsoft.
The trick was to include the bold part:
tf undo /workspace:OtherUserWorkspace;OtherUser $/Project/ItemName.cs /s:http://yourtfsserver:8080
You have to be TFS admin to do this.
Since I was on the same TFS server, I did not have to include the /s: part.
Another project finished :)