我已經在 GitHub 上合并了一個分支到 master ,然后想在本地做一個 git pull 。當我執行 git pull 時,它要求我提交更改,所以我添加了檔案并提交了。
但是發生了一些事情,盡管合并已完成,但我還是卡在了合并的中間。我有一個空的暫存區,當我嘗試執行 git pull 時出現此錯誤:
? git pull
error: You have not concluded your merge (MERGE_HEAD exists).
hint: Please, commit your changes before merging.
fatal: Exiting because of unfinished merge.
? git pull --force
error: You have not concluded your merge (MERGE_HEAD exists).
hint: Please, commit your changes before merging.
fatal: Exiting because of unfinished merge.
在我在控制臺中用我擁有的分支名稱寫的那一行
master merge
有人能告訴我這里發生了什么以及如何解決這個問題嗎?謝謝。
uj5u.com熱心網友回復:
您是否嘗試過git merge --abort并再次嘗試拉動?
來自www.git-tower.com 關于合并沖突:
您應該始終牢記,您可以隨時回傳到開始合并之前的狀態。這應該給你信心,你不能破壞任何東西。在命令列上,一個簡單的
git merge --abort將為您執行此操作。
另請參閱您尚未完成合并(MERGE_HEAD 存在)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/446813.html
標籤:javascript 混帐 github 混帐合并 git 合并冲突
上一篇:在Git中自動化拉取請求
