Team Foundation Server Force Undo CheckOut file of a different user
If you need to force undo checkout for a file checked out by another user you can use the following command from Visual Studio Command Prompt:
tf undo /workspace:WORKSPACE;username $/MyTFSProject/MyFile.cs /s:http://tfsURL:8081
where
you can find WORKSPACE;username by right click on file from Source Control -> Properties -> Status tab
and $/MyTFSProject/MyFile.cs is file path
and http://tfsURL:8081 is TFS server URL
Enjoy!
1 COMMENT