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