1. 程式人生 > 其它 >git錯誤 Please specify which branch you want to merge with 的解決辦法

git錯誤 Please specify which branch you want to merge with 的解決辦法

技術標籤:gitgit

git pull出現下圖報錯:

用git branch 檢視一下:

當前位置在(HEAD detached at 26af3ce)

進行如下操作:


git branch temp 26af3ce

git checkout master

git merge temp

檢視下當前分支

git branch

最後刪除temp分支

git branch -d temp