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