git checkout -b 报错


有时候在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 

posted @ 2016-05-19 15:07  挨踢人啊  阅读(424)  评论(0编辑  收藏  举报