2016-01-15 89 views
0

我搞砸了我的fix-ad-failures分支,同時重新綁定我的dev分支,現在在我的git log中重複提交。當我做了git rebase -i HEAD~6,我看到了重複:git在日誌和rebase中顯示重複的提交

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分支?

回答

0

因爲你已經做衍合互動,只需重新提交和壁球重複,我想:

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 
相關問題