From: "Dirk Süsserott" <newsletter@dirk.my1.cc>
To: Git Mailing List <git@vger.kernel.org>
Subject: Rebase a whole tree from one commit to another?
Date: Fri, 15 May 2009 21:38:53 +0200 [thread overview]
Message-ID: <4A0DC4CD.1030401@dirk.my1.cc> (raw)
Hi alltogether.
Let's say I have the following history:
| | | | branch-c
| | | |
| | |/ branch-b
| | |
| |/ branch-a
| |
|/
| master
Now I checkout master, do some changes, and commit them to the master
branch. Let's call that new-master:
| new-master
| | | | | branch-c
| | | | |
| | | |/ branch-b
| | | |
| | |/ branch-a
| | |
| |/
\| master
I want to rebase my branches a, b, c to the new master. The clumsy way
would be:
git rebase new-master branch-a
git rebase branch-a branch-b
git rebase branch-b branch-c
The question is: Is there a way to rebase the whole tree (master ->
branch-a -> branch-b -> branch-c) from master to new-master with a
single command?
Cheers
-- Dirk
next reply other threads:[~2009-05-15 19:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-15 19:38 Dirk Süsserott [this message]
2009-05-16 7:35 ` Rebase a whole tree from one commit to another? Andreas Ericsson
2009-05-16 13:49 ` Clemens Buchacher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A0DC4CD.1030401@dirk.my1.cc \
--to=newsletter@dirk.my1.cc \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).