Apr 14 2010
fatal: git checkout: updating paths is incompatible with switching branches.
Using GIT I tried to pull down a new remote branch using:
git checkout --track -b my-branch-name origin/my-branch-name
When I did this I got this error message:
fatal: git checkout: updating paths is incompatible with switching branches. Did you intend to checkout 'origin/my-branch-name' which can not be resolved as commit?
This error message was a tad confusing. The solution in my case was simple though, apparently you can’t switch to a different remote branch if your local master is not up-to-date with the remote origin/master so performing:
git pull
resolved the issue and after this I was able to successfully pull down the remote branch.
Related posts:
- fatal: The remote end hung up unexpectedly I committed changes to my GIT project, tried to push...
- GIT Fatal You Have not Concluded Your Merge MERGE_HEAD Exists fatal: You have not concluded your merge. (MERGE_HEAD exists) I...





Great! Thanks! The error message was definitely confusing, but pulling first worked for me too. Thank you.