您的位置:首页 > 其它

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

2017-08-04 18:12 1921 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git checkout fatal paths master