确定章鱼合并期间哪些分支发生冲突

发布于 2024-10-27 15:54:13 字数 104 浏览 5 评论 0原文

我们正在尝试建立一个使用 git octopus merges 的流程来整合许多主题分支以进行定期发布。当发生冲突时,它似乎不会输出哪些分支发生冲突。有谁知道如何确定章鱼合并后冲突来自哪些分支?

We are trying to institute a process using git octopus merges to consolidate many topic branches for regular releases. When there is a conflict, it doesn't seem to output which branches were in conflict. Does anyone know a way to determine what branches the conflicts came from after an octopus merge?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏了南城 2024-11-03 15:54:13

git merge 手册页 提到:

章鱼

这可以解决具有两个以上头的情况,但拒绝进行需要手动解决的复杂合并。它主要用于将主题分支头捆绑在一起。这是拉取或合并多个分支时的默认合并策略。

此线程确实说明了这一点:

章鱼策略无法进行需要手动解析的合并。或者
所以医生说。尝试与 4 2 5 合并后,Git 告诉您:

Trying simple merge with 7ff9b5bd514cb600bac935ebd40eae366bba7d19
Trying simple merge with 6872cd350154743d59cb4d313cbdb122ac43e537
Simple merge did not work, trying automatic merge.
Auto-merging file.txt
ERROR: content conflict in file.txt
fatal: merge program failed
Automated merge did not work.
Should not be doing an Octopus.
Merge with strategy octopus failed.

也就是说,它完全中止合并。如果您“解决”它并提交,那么它只是您所做的提交。

The git merge man page mentions:

octopus

This resolves cases with more than two heads, but refuses to do a complex merge that needs manual resolution. It is primarily meant to be used for bundling topic branch heads together. This is the default merge strategy when pulling or merging more than one branch.

And this thread does indeed illustrate that:

The octopus strategy cannot do merges which need manual resolution. Or
so the doc says. After trying the merge with 4 2 5, Git tells you:

Trying simple merge with 7ff9b5bd514cb600bac935ebd40eae366bba7d19
Trying simple merge with 6872cd350154743d59cb4d313cbdb122ac43e537
Simple merge did not work, trying automatic merge.
Auto-merging file.txt
ERROR: content conflict in file.txt
fatal: merge program failed
Automated merge did not work.
Should not be doing an Octopus.
Merge with strategy octopus failed.

That is, it aborts the merge completely. If you "resolve" it and commit it's simply a commit that you make.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文