Team Foundation Server Force Undo CheckOut file of a different user

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

comments user
Lacey

All of these articles have saved me a lot of headaches.

Leave a Reply

Your email address will not be published. Required fields are marked *

Are you human? Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.