[英]Bitbucket merge conflict issue
I have worked on bitbucket and Github before and have good knowledge about how things work.我之前曾在 bitbucket 和 Github 上工作过,并且对事物的运作方式有很好的了解。 I have one master branch and two feature branches that were created from master only.
我有一个 master 分支和两个仅从 master 创建的功能分支。 I did these steps there
我在那里做了这些步骤
but getting this error The merge could not be completed automatically.但收到此错误无法自动完成合并。 Please clone 'Project/project', checkout 'master' and merge 'feature2' (or commit 'da08d661b57e74488515184d') manually, resolving any conflicts, and push the result
请手动克隆“项目/项目”,签出“master”并合并“feature2”(或提交“da08d661b57e74488515184d”),解决任何冲突,并推送结果
Any idea how to resolve this ?知道如何解决这个问题吗?
I too faced same problem today.我今天也面临同样的问题。 We have Atlassian Bitbucket server.
我们有 Atlassian Bitbucket 服务器。 I got the error when I was trying to merge using " Rebase, fast-forward ".
当我尝试使用“ Rebase, fast-forward ”合并时出现错误。 Then I tried another strategy, " Merge commit " and that worked for me.
然后我尝试了另一种策略“合并提交”,这对我有用。 Refer https://confluence.atlassian.com/bitbucketserver/pull-request-merge-strategies-844499235.html .
请参阅https://confluence.atlassian.com/bitbucketserver/pull-request-merge-strategies-844499235.html 。 Note: On first attemp, I got a popup message asking me reload page which I did and tried again;
注意:第一次尝试时,我收到一条弹出消息,要求我重新加载页面并再次尝试; this time it merged.
这次合并了。
Before trying above, I tried "Workaround#1, Point 2" mentioned here at https://confluence.atlassian.com/bitbucketserverkb/pull-request-cannot-be-merged-or-not-showing-latest-commits-877338546.html but that did not help me.在尝试上述之前,我尝试了https://confluence.atlassian.com/bitbucketserverkb/pull-request-cannot-be-merged-or-not-showing-latest-commits-877338546 中提到的“解决方法#1,第 2 点” .html但这对我没有帮助。 You may try and see what works for you.
你可以尝试看看什么对你有用。
Cause: I feel the reason why it happened to me was;原因:我觉得它发生在我身上的原因是; I worked on a branch say B1 which I had created from Master.
我在一个分支上工作,比如我从 Master 创建的 B1。 Then I created another branch say B2, from B1.
然后我从 B1 创建了另一个分支,比如 B2。 So technically B2 had changes of B1 too hence I created PR to merge B2 to Master(yes all conflicts were resolved before creating the PR).
所以从技术上讲,B2 也对 B1 进行了更改,因此我创建了 PR 以将 B2 合并到 Master(是的,所有冲突在创建 PR 之前都已解决)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.