簡體   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