git pull 報錯:unable to update local ref

 

問題:

error: cannot lock ref 'refs/remotes/origin/XXXX': is at 62e4df28611673b1280de697d1b0dcc85d0f471d but expected 6734d97ce9ee6b4a38bd63b7b224be2d8d8690bd
From 192.168.0.24:project/branch
 ! 6734d97c..62e4df28  XXX -> origin/XXXX  (unable to update local ref)
 

 解決方案:

git gc --prune=now
git remote prune origin
git pull
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章