繁体   English   中英

git不能压缩提交

[英]git cannot squash commits

我不能用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".

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM