git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Odd error when doing "clone && cd && checkout -b"

From
Jacob Helwig <jacob.helwig@gmail.com>
Date
Feb 3, 2010, 13:25 UTC
Message-ID
<20100203132558.GA4595@vfb-9.home>
In-Reply-To
<4B692863.9000409@viscovery.net>
On Tue, Feb 2, 2010 at 23:40, Johannes Sixt <j.sixt@viscovery.net> wrote:
Show 17 quoted lines
> Jacob Helwig schrieb:
>> vfb-9 ~/tmp % git clone git://github.com/rich97/CakeCMP.git && cd CakeCMP && git checkout -b permissions-rewrite origin/permissions-rewrite
>> Initialized empty shared Git repository in /home/jhe/tmp/CakeCMP/.git/
>> remote: Counting objects: 1508, done.
>> remote: Compressing objects: 100% (1432/1432), done.
>> remote: Total 1508 (delta 256), reused 1235 (delta 60)
>> Receiving objects: 100% (1508/1508), 844.43 KiB | 104 KiB/s, done.
>> Resolving deltas: 100% (256/256), done.
>> fatal: git checkout: updating paths is incompatible with switching branches.
>> Did you intend to checkout 'origin/permissions-rewrite' which can not be resolved as commit?
>
> Or did you intend to track 'origin/permission-rewrite' instead ;-)
>
> -- Hannes
>
> PS: Please don't set Mail-Followup-To for this list.
>

Well, I _thought_ I had used the exact same command for the "checkout -b". Obviously, this is not the case. Bah. That's what I get for trying to do anything so late.

Apparently Mutt defaults to setting the Mail-Followup-To, if you've let it know about a list. Anyway...that's been fixed.

-Jacob
Previous: Johannes Sixt
Message 3 of 3 in “Odd error when doing "clone && cd && checkout -b"”
  1. Jacob HelwigFeb 3, 2010
  2. Johannes SixtFeb 3, 2010
  3. Jacob HelwigFeb 3, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.