post icon

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!

June 1st, 2011 @ 02:41

1 Comment

Leave a comment
  1. Lacey
    September 13th, 2011 at 04:30 #

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

Leave a Reply

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