git checkout remote error

2017-12-05  本文已影响22人  kinkyboots
$ git checkout -b develop origin/develop  
fatal: Cannot update paths and switch to branch 'develop' at the same time.  
Did you intend to checkout 'origin/develop' which can not be resolved as commit?  

Solution:

git fetch origin remote_branch_name:local_branch_name

https://stackoverflow.com/questions/945654/git-checkout-updating-paths-is-incompatible-with-switching-branches

上一篇 下一篇

猜你喜欢

热点阅读