很纳闷的一件事,在分支合并的时候,还在测试中的代码被合并到了master
分支。
首先怀疑的情况是,feature
分支可能本身就是基于开发中的分支创建的。在网上查看到了下面这条命令:
git reflog -date=local | grep "support-college"
从这个命令的输出结果中截取展示一部分,初看感觉是一个分支切换记录,仔细想想又像是操作的明细记录:
741a1051 HEAD@{147}: merge support-college: Merge made by the 'recursive' strategy.
fcccbec3 HEAD@{174}: commit (merge): Merge branch 'support-college' into develop
cfba2c43 HEAD@{207}: checkout: moving from support-college to only-for-local-fuhui
5798770b HEAD@{208}: checkout: moving from master to support-college
不过从moving from master to
这里推测,大概率是从master
分支拉的新分支。
然后怀疑,是不是在中途操作的过程中,merge
分支的方向反了。但是没有办法得出结论。
来源:oschina
链接:https://my.oschina.net/u/3017278/blog/3192944