为什么使用git'quash和merge'选项的PR似乎不与master合并?

时间:2018-03-26 18:57:29

标签: git

GitHub有几种合并Pull Request的选项。一个是Squash and merge。选择此选项后,所有中间提交将在合并之前被压缩。奇怪的是,在网络图(见解选项卡)中,分支(从中创建了拉取请求)似乎没有合并到主数据库中。如果您使用Sourcetree,您会看到同样的事情。

enter image description here

如果您选择Squash and merge选项,则不会选择Merge pull request,而是看到与主服务器合并的分支。

enter image description here

为什么会这样?在Squash and merge操作中压缩中间提交后,我希望分支与master合并。

1 个答案:

答案 0 :(得分:4)

绘制合并箭头的图形工具正在寻找合并提交'。使用'壁球并合并' Github上的选项不会创建合并提交(它被压缩')。

有关GitHub上不同合并方法的更多信息:https://help.github.com/articles/about-merge-methods-on-github/

相关问题