[英]Pull request shows old commits after rebase/merge to another branch in azure devops
We are trying to adapt Skullcandy git flow - link我们正在尝试调整 Skullcandy git 流程 - 链接
In short the flow is:简而言之,流程是:
Now we have problems with both merge and rebase using this approach.现在我们在使用这种方法的合并和变基方面都遇到了问题。
Rebase approach:变基方法:
I'm not sure why this happens.我不确定为什么会这样。 It seems almost like feature branches commit history is rewritten.似乎特性分支的提交历史被重写了。 I'm also not sure if this approach is feasible at all since rebase can create new commit SHA's so they can be shown as changes.我也不确定这种方法是否可行,因为 rebase 可以创建新的提交 SHA,因此它们可以显示为更改。
Merge approach:合并方法:
I'm guessing this problem occurs because SHA of merge commits are different on QA and master branches?我猜这个问题的发生是因为合并提交的 SHA 在 QA 和 master 分支上是不同的?
Summary概括
Can you help me to understand why rebase behaves the way it does?你能帮我理解为什么 rebase 会这样吗?
Are there any suggestions as to how we can improve our flow?对于我们如何改善我们的流程有什么建议吗?
We would prefer the master only flow but for that we would need autogenerated testing environments for automated tests and we are not there yet:)我们更喜欢只有主流程,但为此我们需要自动生成的测试环境来进行自动化测试,而我们还没有:)
I was just looking for an answear for this, and found this Microsoft response .我只是在为此寻找答案,并找到了这个 Microsoft 回复。
They claim it's a feature - not a bug.他们声称这是一项功能 - 而不是错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.