美文网首页
git checkout remote error

git checkout remote error

作者: kinkyboots | 来源:发表于2017-12-05 21:55 被阅读22次
    $ 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

    相关文章

      网友评论

          本文标题:git checkout remote error

          本文链接:https://www.haomeiwen.com/subject/sljhixtx.html