与获取特定版本相反,覆盖服务器上的文件
我们的源代码控制位于 Hyper-V 虚拟机上,昨晚镜像的快照合并出现了严重错误。源代码控制服务器现在包含几个月前的源代码版本;此后的所有更改都已丢失。
顺便说一句,如果您的源代码控制位于虚拟机上,请在对计算机映像执行任何操作之前备份数据库,好吗?
我想强制将当前工作区推回到服务器上,即与选中“覆盖所有文件”复选框的“获取特定版本”相反。
目前,我能想到的唯一方法是分支、删除所有内容、重新添加所有内容,然后合并。皮塔饼。
Our source control is on a hyper-v virtual machine, and last night a snapshot-merge of the image went horribly wrong. The source control server now contains a months-old version of the source; all changes since have been lost.
By the way, if your source control is on a virtual machine, back up the database before you do anything with the machine image, mkay?
I want to forcibly push my current workspace back onto the server, the reverse of doing a Get Specific Version with the "Overwrite all files" checkbox checked.
Currently, the only way I can think of to do it is to branch, delete everything, re-add everything, then merge. PITA.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为什么不回滚签入?
请参阅 MSDN 上的tf 回滚文档
Why don't you rollback the checkin?
See the tf rollback documentation on MSDN
我不确定这是否真的有效,因为我没有可以尝试的 TFS 项目。但如果我发现自己处于你的情况,我会尝试这样做。
I am not sure if this will actually work, since I don't have a TFS project that I would try it on. But here is what I would try, if I found myself in your situation.