编程之家收集整理的这篇文章主要介绍了git 切换远程仓库,以及碰到的一个问题。,编程之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
git 切换远程仓库出现如下问题:
$ git checkout -b localdev origin/dev
fatal: Cannot update paths and switch to branch 'localdev' at the same time.
Did you intend to checkout 'origin/dev' which can not be resolved as commit?
解决方法:先执行git fetch origin。要下班了,详细情况下回在细说。
'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 切换远程仓库,以及碰到的一个问题。全部内容,希望文章能够帮你解决git 切换远程仓库,以及碰到的一个问题。所遇到的程序开发问题。
如果觉得编程之家网站内容还不错,欢迎将编程之家网站推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您喜欢交流学习经验,点击链接加入编程之家官方QQ群:1065694478