git checkout -b 报错

来源:互联网 发布:美国购物节网络星期一 编辑:程序博客网 时间:2024/06/05 14:53


有时候在git中checkout -b 出现如下报错


$ git checkout -b test --track origin/master
fatal: Cannot update paths and switch to branch 'test' at the same time.
Did you intend to checkout 'origin/master' which can not be resolved as commit?


解决方法



git remote -v


git fetch origin


最后执行自己的git checkout -b 

0 0