Bitbucket分支的错位和冲突

发布于 2025-01-24 14:44:39 字数 1059 浏览 4 评论 0原文

我经历了git/bitbucket的奇怪行为。 我们是一个使用以下工作流程工作的小组开发人员团队:

所有功能都是从Master开始的分支中开发的。 我们有一个生产分支。 因此,要发布一个功能,我们在Bitbucket中创建2个PR: 功能 - 分支 - >主 主 - >生产 通常,并行开发多个功能,因此我们必须确保在合并PR之前将特征分支与主体保持一致。有时,这需要解决冲突。

我们观察到的东西:

  • 创建Pr Master->生产 bitbucket显示消息:

x立即落后于“生产”。

  • 有时Master生产之间存在冲突。

  • 创建PR Bitbucket时会自动生成提交消息,并且每次包含以前合并的提交时。 即使我在分支对齐时创建PR,也会发生这种情况,这可以通过diff为空的事实来确认。

上述原因可能是什么?我不知道。 为了理解我,生产之间不应有冲突或错位,因为我们不直接致力于生产

我们用于PR和分支管理的设置:

”在此处输入图像说明”

I am experiencing strange behavior of Git/Bitbucket.
We are a small team of developers working using following workflow:

All features are developed in branches started from master.
And we have a production branch.
So to publish a feature we create 2 PRs in Bitbucket:
feature-branch -> master
master -> production
It's often that there are multiple features being developed in parallel, so we have to make sure that feature branches are aligned to master before merging the PR. Sometimes this requires resolving conflicts.

The things we observe:

  • Once creating the PR master -> production Bitbucket shows message:

X commits behind "production".Sync now.

  • Sometimes there is a conflict between master and production which is always trivially resolved.

  • When creating the PR Bitbucket generates commit message automatically and every time it contains commits that were merged before.
    This happens even if i create PR when branches are aligned, which can be confirmed by the fact that diff is empty.

What could be a cause to the above? I can't figure out.
To my understanding there should be no conflict or misalignment between master and production as we don't commit to production directly.

The settings we use for PR and branch management:
enter image description here

enter image description here

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文