Reputation: 5315
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?
Upvotes: 5
Views: 22664
Reputation: 1390
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
Upvotes: 0
Reputation: 5315
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.
Upvotes: 14
Reputation: 12668
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.
Upvotes: 5