备份/恢复后修复不同步 TFS 工作区的最佳方法
星期三我必须从星期一制作的备份图像中恢复。在拍摄快照时,我修改了大约 20 个文件,我后来在周二签入了这些文件以及更多文件。现在我回到了周一早上的快照,我的工作区已签出或添加了所有这些文件等,甚至包括我的签入注释和工作项关联。但我已经在周二办理了登机手续。
我想我会搁置所有待处理的更改(以防万一),然后撤消所有更改,并获取最新版本(特定版本)。我应该会恢复正常。
有什么注意事项或建议吗?
(TFS 2008、VS2010)
Wednesday I had to restore from a back-up image I made on Monday. At the time of the snapshot I had about 20 files modified, which I later checked in, and more, on Tuesday. Now that I am back to a snapshot from Monday morning, my workspace has all of these files checked-out or added, etc. even my check-in comments and work-item associations. But I already did that check-in on Tuesday.
I'm thinking I will shelve all the pending changes (just in-case), and then just undo all changes, and get latest (specific version). And I should be back to good.
Any cautions or suggestions?
(TFS 2008, VS2010)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您确定在恢复之前检查了所有内容,并且 TFS 服务器具有所有文件的正确版本,则删除工作区并创建一个新工作区可能会更安全。
这将确保所有内容都在应有的位置,并且您不会冒某些内容在您不希望的情况下意外被覆盖或修改的风险。
If you are sure you checked everything in before you restored, and the TFS server has the right versions of all the files, you may be safer just to delete your workspace and make a new one.
This will make sure everything is where it should be, and you won't run the risk of something accidentally getting overwritten or modified when you didn't want it to.