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

Re: Question about git rebase --onto

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 4, 2010, 01:12 UTC
Message-ID
<7vhbpx3it2.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4B686CAC.7020103@obry.net>
Pascal Obry <pascal@obry.net> writes:
Show 5 quoted lines
>> Possible user errors I can think of are:
>> ...
> I'm not on this case.
> ...
> I'm not in this case either.

Thenk there are some _other_ differences between your situation and what I can construct from your problem description:

    It seems to me that:
       $ git co topic
       $ git rebase --onto master topic~2 topic
    Used to do the job and rebase the topic branch as expected....

which I tried myself before giving you a reply, and I didn't end up on a detached HEAD. But I cannot guess what that difference you are not telling us is (and you probably don't know it either, I suspect).

Writing reproducible test case would be a great way to diagnose this.
Previous: Pascal ObryNext: Pascal Obry
Message 5 of 12 in “Question about git rebase --onto”
  1. Pascal ObryFeb 2, 2010
  2. Junio C HamanoFeb 2, 2010
  3. Junio C HamanoFeb 2, 2010
  4. Pascal ObryFeb 2, 2010
  5. Junio C HamanoFeb 4, 2010
  6. Pascal ObryFeb 4, 2010
  7. Junio C HamanoFeb 4, 2010
  8. Pascal ObryFeb 17, 2010
  9. Tay Ray ChuanFeb 17, 2010
  10. Pascal ObryFeb 17, 2010
  11. Tay Ray ChuanFeb 17, 2010
  12. Pascal ObryFeb 17, 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.