git不能压缩提交

时间:2013-01-25 02:29:14

标签: git rebase

我无法使用git rebase -i command压缩提交,收到以下错误消息。

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".

错误是什么以及如何解决?

2 个答案:

答案 0 :(得分:6)

Git无法自动合并。尝试git mergetool并解决冲突,然后使用git rebase --continue

继续您的变基

答案 1 :(得分:0)

可能您之前使用过git rebase并且没有完成它。要验证它,请键入__git_ps1并验证是否出现单词rebase。要解决此问题,您需要使用git rebase --abort中止早期的rebase并应用您想要的rebase。