<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>&lt;p&gt;I ran into a strange issue while attempting to checkout a remote tracking branch of an Intridea project earlier today, so I thought I'd post up my work around.&lt;/p&gt;
&lt;p&gt;I ran my normal checkout command, like so...&lt;/p&gt;
&lt;pre class="terminal"&gt;brent:~/Intridea/earthaid[master]$ git checkout -b prod origin/prod&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;which resulted in this error message&lt;/p&gt;
&lt;pre class="terminal"&gt;fatal: git checkout: updating paths is incompatible with switching branches.&lt;br /&gt;Did you intend to checkout 'origin/prod' which can not be resolved as commit&lt;/pre&gt;
&lt;p&gt;After a bit of googling, I'm still not sure of the cause as most of the search results were related to issues around deploying tags, and I was merely attempting a checkout.&amp;nbsp; What I did find out was that I could specify the start point of my new branch by the revision/commit sha instead of the remote branch name, like so...&lt;/p&gt;
&lt;pre class="terminal"&gt;brent:~/Intridea/earthaid[master]$ git branch prod 02314583a99abdc276cde968c20babbadd23&lt;br /&gt;brent:~/Intridea/earthaid[master]$ gc prod&lt;br /&gt;Switched to branch "prod"&lt;br /&gt;brent:~/Intridea/earthaid[prod]$&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;Once I had applied my changes, I just had to make sure to push them to the proper branch.&lt;/p&gt;
&lt;p&gt;[update]&lt;/p&gt;
&lt;p&gt;&lt;img src="http://s3.amazonaws.com/brentmc79-prod/files/6/original.jpg?1241620873" alt="farside_cartoon.jpg" width="320" height="231" /&gt;&lt;/p&gt;
&lt;p&gt;Ok, I'm a retard.&amp;nbsp; About a minute or two after I typed up this post, it occurred to me that Git couldn't resolve the remote branch name because I hadn't pulled first.&amp;nbsp; Yeah, that's right.&amp;nbsp; All I need to do was pull and then everything worked properly.&lt;/p&gt;</body>
  <created-at type="datetime">2009-05-06T14:44:45Z</created-at>
  <description>Attempting to create a Git branch resulted in "updating paths is incompatible" error message.  The solution, pull first.  Doh!</description>
  <id type="integer">29</id>
  <keywords>git, fatal error, pull, updating paths</keywords>
  <published type="boolean">true</published>
  <slug>git-checkout-woes-updated</slug>
  <title>Git checkout woes [updated]</title>
  <updated-at type="datetime">2009-05-06T14:49:42Z</updated-at>
</post>
