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

Re: Rebasing part of a branch

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 2, 2006, 11:15 UTC
Message-ID
<eick03$mh3$1@sea.gmane.org>
In-Reply-To
<200611021045.25423.andyparkins@gmail.com>
Andy Parkins wrote:
Show 17 quoted lines
> Hello,
> 
> Is there a way to rebase part of a branch?  For example
> 
>                         H---I---J topicB
>                        /
>               E---F---G  topicA
>              /
> A---B---C---D  master
> 
> And I want:
> 
>              H---I---J  topicB
>             /
>             | E---F---G  topicA
>             |/
> A---B---C---D  master
We have
 git-rebase [--merge] [--onto <newbase>] <upstream> [<branch>]

Try then $ git rebase --onto master topicA topicB

(if you checked out topicB, you don't need last topicB in git-rebase).
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Andy Parkins
Message 2 of 2 in “Rebasing part of a branch”
  1. Andy ParkinsNov 2, 2006
  2. Jakub NarebskiNov 2, 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.