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

版权声明:本文为博主原创文章,欢迎转载,请注明出处 https://blog.csdn.net/mouday/article/details/82383647

拉取远程分支:

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

猜你喜欢

转载自blog.csdn.net/mouday/article/details/82383647