簡體   English   中英

git bash rebase 1的

[英]git bash rebase 1 of

嘗試推送時git bash的問題。 我嘗試了以下操作(請參見代碼段)以在推送前將最新消息拉低,但出現以下錯誤(請參見屏幕截圖)。 請問該如何解決? 非常感謝,

在此處輸入圖片說明

git pull --rebase

更新資料

見下文

在此處輸入圖片說明

您是否正在進行rebase ?,請嘗試git rebase --continue

嘗試以下順序,

git commit
git clean -f
git pull --rebase
                    |
                    | # resolve conflict, use mergetool
#only when conflict | git add
                    | git rebase --continue
                    |
git push

首先,這不是錯誤。 Git告訴您,您有3次提交需要重新設置基准,而第一個提交則遇到了沖突。

必須解決沖突中的沖突,然后通過git add .將它們添加到索引中git add . 那么您可以使用git rebase --continue

如果要放棄重新設置git rebase --abort並重新開始,請使用git rebase --abort

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM