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

Re: rebasing trouble

From
Junio C Hamano <junkio@cox.net>
Date
Jun 29, 2006, 22:34 UTC
Message-ID
<7vlkrfoaky.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060629215725.GI14287@fieldses.org>
"J. Bruce Fields" <bfields@fieldses.org> writes:
Show 6 quoted lines
> In my defense, it is a little confusing: none of
> the examples in the man page that use --onto actually need it, and the
> "upstream" argument probably should be described as a commit or something
> instead of a branch.
>
> (What is --onto actually useful for?)

Think of it as a replacement of cherry-picking series of patches from remotely related branches.

For example, I maintain two public branches "master" and "next", the former is supposed to be quite stable and the latter to contain sane proposed updates that need to be proven before graduating to "master".

Sometimes I get patches that I have to apply on top of "next" because of textual dependency, but the changes are worthwhile to have it in "master" earlier than the changes the other series depends on.

 o---o---o---o---o master
      \
       o---o---o---o---o next
                        \
                         o---o---o good
	$ git checkout good
        $ git rebase --onto master next
 o---o---o---o---o master
     |            \
     |             o---o---o good
      \
       o---o---o---o---o next
Previous: J. Bruce FieldsNext: J. Bruce Fields
Message 6 of 8 in “rebasing trouble”
  1. J. Bruce FieldsJun 29, 2006
  2. Junio C HamanoJun 29, 2006
  3. J. Bruce FieldsJun 29, 2006
  4. J. Bruce FieldsJun 29, 2006
  5. J. Bruce FieldsJun 29, 2006
  6. Junio C HamanoJun 29, 2006
  7. J. Bruce FieldsJun 29, 2006
  8. Junio C HamanoJun 30, 2006

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.