Apr 14 2010

fatal: git checkout: updating paths is incompatible with switching branches.

Published by michael at 11:16 am under GIT

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.

Share and Enjoy:
  • del.icio.us
  • Google Bookmarks
  • Technorati
  • Twitter
  • StumbleUpon

Related posts:

  1. fatal: The remote end hung up unexpectedly I committed changes to my GIT project, tried to push...
  2. GIT Fatal You Have not Concluded Your Merge MERGE_HEAD Exists fatal: You have not concluded your merge. (MERGE_HEAD exists) I...

One response so far

One Response to “fatal: git checkout: updating paths is incompatible with switching branches.”

  1. Danon 17 Mar 2011 at 6:16 am

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

Trackback URI | Comments RSS

Leave a Reply