Git checkout: updating paths is incompatible with switching branches

后端 未结 11 893
你的背包
你的背包 2020-11-27 08:48

My problem is related to Fatal Git error when switching branch.

I try to fetch a remote branch with the command

git checkout -b local-name origin/rem         


        
11条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 09:23

    Alternate syntax,

    git fetch origin remote_branch_name:local_branch_name
    

提交回复
热议问题