git merge时弹出需要注释信息的界面
2017-03-09 14:53:50    4591    0    0
7wlnk13

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等严重错误。




上一篇: iptables做双向NAT

下一篇: PHP 安装

4591 人读过
立即登录, 发表评论.
没有帐号? 立即注册
0 条评论
文档导航