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!Qualora abbiate bisogno di fare un Undo Checkout forzato di un file preso in checkout da un altro utente potete utilizzare il seguente comando da prompt di Visual Studio:
tf undo /workspace:WORKSPACE;username $/MyTFSProject/MyFile.cs /s:http://tfsURL:8081
dove
WORKSPACE;username lo trovate facendo tasto destro sul file da Source Control -> Proprietà -> tab Status
$/MyTFSProject/MyFile.cs è il path del file di cui fare l’Undo
http://tfsURL:8081 è l’URL del server TFS
1 commento