2013-01-25 95 views
7

我不能擠壓提交git rebase -i command,得到以下錯誤信息。git不能擠壓提交

error: could not apply 3ad5c7b... 

When you have resolved this problem run "git rebase --continue". 
If you would prefer to skip this patch, instead run "git rebase --skip". 
To check out the original branch and stop rebasing run "git rebase --abort". 

什麼是錯誤以及如何解決它?

+1

是否存在一些衝突? – pktangyue

+0

可能的重複[如何解決Git中的合併衝突?](http://stackoverflow.com/questions/161813/how-doi-i-fix-merge-conflicts-in-git) – R0MANARMY

+0

@PRC type'git狀態「並向我們顯示輸出,它說什麼? – 2013-08-10 00:19:47

回答

0

您可能以前使用過git rebase,並沒有完成它。要驗證它,請輸入__git_ps1並驗證是否出現單詞rebase。爲了解決這個問題,你需要用git rebase --abort來中止早期的rebase並且應用你想要的rebase。

+0

我試過這個,但無法解決問題。 –

+0

當你輸入'__git_ps1'時,你得到了什麼? –

+0

'__git_ps1'錯誤對我來說。 – agconti

6

Git未能自動合併。嘗試git mergetool並解決衝突,然後繼續與git rebase --continue