如何撤消来自非托管工作区的 tfs 更改?
我有一个永远丢失的工作空间。 我从这个工作区签出了一些文件。 我想解锁它们,但我不能。 我试图这样做:
TF UNDO $/MyProject/MyFolder/MyFile.cs /WORKSPACE:LOST;user /s:http://mysite:8080
但我收到了这条消息:
工作区丢失;用户不在该工作区 电脑。 运行 get (获取所有如果编辑 已撤消)在托管计算机上 该工作区以更新它 已做出的更改 服务器。
是否有任何方法可以撤消由不可用工作区签出的文件(不是每个文件)?
I have a workspace that is lost forever. I have some files checked out from this workspace. I want to unlock them but I can't. I tried to do:
TF UNDO $/MyProject/MyFolder/MyFile.cs /WORKSPACE:LOST;user /s:http://mysite:8080
But I got this message:
The workspace LOST;user is not on this
computer. Run get (get all if edits
were undone) on the computer hosting
that workspace to update it with the
change s that have been made on the
server.
Does exist any way to undo a file (not every file) checked out by unavailable workspace?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果工作区丢失了,那么我就会删除它。 删除它会撤消对其所做的任何更改。
If the workspace is lost, then I would just delete it. Deleting it undoes any changes that were made in it.
只要您拥有适当的权限,我认为@BubbleSort 的答案中的方法应该有效: https://stackoverflow.com /a/17870318/1982894
他使用 TFS 2012,我在 TFS 2010 中测试过它,它也可以在那里工作。
复制答案以方便参考:
As long as you have the appropiate permissions I would think that the method from this answer by @BubbleSort should work: https://stackoverflow.com/a/17870318/1982894
He used TFS 2012, I have tested it in TFS 2010 and it works there too.
Answer copied for easy reference: