fatal: Cannot update paths and switch to branch 'master' at the same time.

fatal: Cannot update paths and switch to branch ‘master’ at the same time.
Did you intend to checkout ‘origin/master’ which can not be resolved as commit?

‘origin/master’ which can not be resolved as commit
Strange: you need to check your remotes:

git remote -v

And make sure origin is fetched:

git fetch origin

Then:

git branch -avv

(to see if you do have fetched an origin/master branch)

執行上面三句代碼,然後再執行:
git checkout -b master origin/master

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