天天看點

Git: Cannot update paths and switch to branch 'feature' at the same time.

拉取遠端分支:

git checkout -t origin/feature      

報錯如下

fatal: Cannot update paths and switch to branch 'feature' at the same time.
Did you intend to checkout 'origin/feature' which can not be resolved as commit?      

解決:

git fetch
git checkout -t origin/feature