tfs: how to unlock changes

橙三吉。 提交于 2019-12-05 05:18:27
Dylan Smith

Deleting the old workspace is probably what you want to do. You can do this with the tf workspace command, but an easier method is to use the free TFS Sidekicks add-on which gives you a GUI to manage and delete workspaces.

Have you tried using TFS powertools?

Once you have that, you can right-click on your folder or file, and choose Find in Source Control -> Status. After you click Find, it should show you all the check-outs, or files that are checked-out

You should then be able to right-click on the checkout and choose "Undo..".

While this is generally issuing the same command line arguments, I've had good luck with it.

If you aren't intending to use the old workspace again, it would be a good idea to (carefully) delete the entire workspace. This will clean up everything relating to it, and mean that it no longer "pollutes" listings of your active workspaces, etc.

You can also break the lock on a single file, but you will need to have appropriate permissions to be able to break locks. See here for a specific explanation of how to do it.

Try something like this:

The following example unlocks and makes all files in the src/ Team Foundation version control server folder available for check-out and check-in by other users.

c:\projects>tf lock /lock:none src/

More documentation here: http://msdn.microsoft.com/en-us/library/47b0c7w9.aspx

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!