TFS:用另一个覆盖一个分支

编程入门 行业动态 更新时间:2024-10-18 03:24:40
本文介绍了TFS:用另一个覆盖一个分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

是否可以用另一个分支覆盖一个分支?

Is it possible overwrite a branch with another?

或者是删除分支B并从分支A创建新分支的唯一解决方案?

Or is the only solution to delete branch B and make a new branch from Branch A?

推荐答案

除非您运行的是 TFS 2010,否则我建议您使用 Merge + Resolve 使两个分支恢复同步.

Unless you're running TFS 2010, I'd recommend using Merge + Resolve to bring the two branches back in sync.

# cancel out of conflict dialog
tf merge A B -r -force -version:T
tf resolve B -r -auto:acceptTheirs

这应该使所有内容都相等,除了仅在 B 中创建且从未合并回来的文件.使用 Folder Diff 查找 &调和它们.

That should equalize everything, except for files that were only created in B and never merged back. Use Folder Diff to find & reconcile them.

在 2005/2008 中删除 + 重新分支会在未来冒着噩梦般的调试命名空间冲突的风险.如果你有 2008,另一个选择是销毁 + 重新分支.显然,这假设您可以从 B 的原始副本中丢失所有历史记录.

Delete + rebranch in 2005/2008 runs the risk of nightmarish-to-debug namespace conflicts in the future. The other option, if you have 2008, is to Destroy + rebranch. Obviously that assumes you are ok with losing all the history from the original copy of B.

这篇关于TFS:用另一个覆盖一个分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 18:58:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1398167.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:分支   TFS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!