被切换的分支

生来就可爱ヽ(ⅴ<●) 提交于 2020-03-12 23:40:18

很纳闷的一件事,在分支合并的时候,还在测试中的代码被合并到了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分支的方向反了。但是没有办法得出结论。

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!