git merge php时弹出如下界面。
Merge branch 'php' # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit. Merge made by the 'recursive' strategy.
合并可以成功,但是是以recursive方式合并php分支。
[root@test test1]# git merge php Merge made by the 'recursive' strategy. 3.php | 1 + 1 file changed, 1 insertion(+) create mode 100644 3.php
【情景分析】
正常的流程:
出现此情况的流程:
关键在于第三步,在开发下一个功能前,需要从dev分支拉取最新的代码。
【结论】
没有在最新代码的基础上进行开发,会导致版本不一致、出现BUG等严重错误。
没有帐号? 立即注册