fatal: Cannot update paths and switch to branch 'gitlab' at the same time.
2015-10-22 18:42
597 查看
I believe this occurs when you are trying to checkout a remote branch that your local git repo is not aware of yet. Try:
If the remote branch you want to checkout is under “New remote branches” and not “Tracked remote branches” then you need to fetch them first:
Now it should work:
还有一种方法:
直接执行如下命令:
git remote show origin
If the remote branch you want to checkout is under “New remote branches” and not “Tracked remote branches” then you need to fetch them first:
git remote update
git fetch
Now it should work:
git checkout -b local-name origin/remote-name
还有一种方法:
直接执行如下命令:
git fetch --all && git fetch -t
相关文章推荐
- Facebook Wire Protocal Buffer (protobuf)简介
- 晚上枕边要放个橘子
- 修改Windows帐户密码,导致Sql Server 2000无法启动
- 修正conflict
- Mac OS X平台下的桌面软件开发感悟
- 图像滤镜艺术---Photoshop实现Instagram Amaro滤镜特效
- leetcode 279 : Perfect Squares
- NLPIR/ICTCLAS中文分词系统 java相关api文档总结
- 1022 词法分析~心得
- win7 安装过程中遇到的错误解决方法
- hive 分组+组内排序 , 求topN
- 推荐几个高质量的博客
- Win32 API函数
- vim中多标签和多窗口的使用
- 大数据排序 去重相关问题
- 第三章家庭作业
- poj1155 TELE
- HDU 5504 GT and sequence(贪心)
- BZOJ 4300(绝世好题-dp)
- 欢迎使用CSDN-markdown编辑器