What do you do if the file in TFS is locked by someone else?

后端 未结 11 874
梦如初夏
梦如初夏 2020-12-23 13:35

Someone left the organisation but before leaving, he locked all the files for an unknown reason.

How do you unlock them all so that the other developers can work?

11条回答
  •  Happy的楠姐
    2020-12-23 14:05

    For the following operation, you will need to be either a project administrator for the project you want to undo the check-in on or a Team Foundation Administrator if you want to do this across all projects.

    If you still have the username of the person, you can simply do something like this:

    • Open up Visual Studio command prompt (Start -> Programs -> Microsoft Visual Studio 200X -> Visual Studio Tools -> Visual Studio 200X Command Prompt)
    • Run the following command:

    tf lock /lock:none /workspace:WorkspaceName;USERNAME /recursive $/

    To get the list of workspaces for a user, just run the following command from the same prompt:

    tf workspaces /owner:username

    For more commands, check tf /?

提交回复
热议问题