git 不能签出分支的处理方法
使用 git checkout -b [your_branch_name] origin/[remote_branch_name] 签出远程分支在本地建立一个对应分支时出错: ubuntu:~/zhihu$ git checkout -b hotfix origin/hotfix
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/hotfix' which can not be resolved as commit?
解决办法 就是运行这个:
git remote prune origin