git在log和rebase中显示重复的提交

时间:2016-01-15 16:54:06

标签: git rebase

我以某种方式搞砸了我的git log分支,同时对我的git rebase -i HEAD~6分支进行了反对,现在我的pick 086b514 BUG FIX [...] pick 58ff4cd Write spec for ad controller pick 8289cb5 Fix spec failures in ad model pick 618e995 Write spec for ad controller pick d8f0bbc Fix spec failures in ad model pick 7cd0682 Refactor ad view [...] 中有了重复的提交。当我执行086b514时,我会看到重复项:

dev

此处的第一次提交(fix-ad-failures)来自我的dev分支。其余的是{{1}}。

什么是摆脱这些重复项并正确反对我的{{1}}分支的正确方法?

1 个答案:

答案 0 :(得分:0)

因为你已经做了rebase交互,只是重新排列提交和压缩重复,我想:

pick 58ff4cd Write spec for ad controller
f 618e995 Write spec for ad controller
pick 8289cb5 Fix spec failures in ad model
f d8f0bbc Fix spec failures in ad model