How to unlock a file from someone else in Team Foundation Server

后端 未结 12 906
臣服心动
臣服心动 2020-12-01 01:01

We have a project that is stored within our TFS server and some files were Checked-Out by me from another computer and another user (both of which are not used anymore). Is

12条回答
  •  离开以前
    2020-12-01 01:39

    Based on stackptr answer I've created batch file UnlockOther.bat

    @rem from https://stackoverflow.com/questions/3451637/how-to-unlock-a-file-from-someone-else-in-team-foundation-server
    @rem tf undo {file path} /workspace:{workspace};{username
    
    call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
    @echo on
    tf undo $/MyTfsProject/path/fileName.ext /workspace:CollegeMachine;CollegueName /login:MyLogin 
    @pause
    

提交回复
热议问题