5

Some TFS server files are checked out by one developer in eg (houbm10) machine in lock mode. After that the machine is changed with some other machine like houbm20, now I am unable to checkout those locked file.

So, how can I unlock those files?

2
  • 1
    duplicate of stackoverflow.com/questions/3451637/… Dec 21, 2011 at 7:30
  • 1
    hi! Rotem, but i m still getting problem The item C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\References\AxInterop.OfficeCtrl.dll could not be found in your workspace, or you do not have permission to access it. The item $/S/B/P_AOT_2.1/dotNET/Symphony/Tools/UpdateUserResources/Dll could not be found in your workspace, or you do not have permission to access it.
    – Piyush
    Dec 21, 2011 at 9:22

3 Answers 3

14

To unlock individual files run the command below in Visual Studio Command Prompt:

tf undo "file_path" /workspace:workspace_name

e.g.:

tf undo $/S/B/ABC/dotNET/Symphony/Tools/xyz/abc/Abc.dll /workspace:Houst01

here it will unlock Abc.dll which is inside abc folder.

To unlock the whole folder in one shot:

tf undo $/S/B/ABC/dotNET/Symphony/Tools/xyz/abc/* /workspace:Houst01

here it will unlock all files which is inside abc folder.

1
  • 2
    I successfully used your example but had to include the domain and username of the user who had the file/s locked after workspace. E.g /workspace:Houst01;<domain>\<username> Oct 17, 2012 at 22:19
5

Did you try the TFS Sidekicks from Attrice?

It gives you a graphical interface to do all these commands, which makes it much easier to perform these tasks.

0

try this in Visual studio command prompt i hope it will work...

 C:\Program Files (x86)\Microsoft Visual Studio 12.0>tf undo
 {tfsfilepath} /Workspace:{tfsusername}

 Undo your changes to {Filepath} (Yes/No) yes

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.