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

Rebasing part of a branch

From
APAndy Parkins <andyparkins@gmail.com>
Date
Nov 2, 2006, 10:45 UTC
Message-ID
<200611021045.25423.andyparkins@gmail.com>
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
Of course,
 
 git-checkout topicB
 git-rebase master

Doesn't work, because the common ancestor is D, which is master, and there is nothing to do.

Of course I can cherry-pick, but is there something like
 git-rebase --limit topicA master
Or some git-magic I can work?
Andy
-- 
Dr Andy Parkins, M Eng (hons), MIEE
Next: Jakub Narebski
Message 1 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.