From: "Dirk Süsserott" <newsletter@dirk.my1.cc>
To: Git Mailing List <git@vger.kernel.org>
Subject: Q: rebasing (moving) a whole tree (not just one branch)
Date: Fri, 18 Mar 2011 21:05:30 +0100 [thread overview]
Message-ID: <4D83BB0A.8070307@dirk.my1.cc> (raw)
Hi,
I'd like to rebase a whole tree from A to B. Not just a single branch,
but a whole tree. Let's say I have the following history:
--- A --- B
|
+ -- C -- D
|
+ E -- F
I'd like to rebase C and its descendants from A to B so it becomes:
--- A --- B
|
+ -- C' -- D'
|
+ E' -- F'
I know I can do it manually with
git rebase B C
git rebase C D
git rebase C E
git rebase E F
Is there a way to just say "rebase C and all after that from A to B"?
Dirk
next reply other threads:[~2011-03-18 20:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-18 20:05 Dirk Süsserott [this message]
2011-03-18 20:26 ` Q: rebasing (moving) a whole tree (not just one branch) Jonathan Nieder
2011-03-18 21:14 ` Junio C Hamano
2011-03-18 21:34 ` Jonathan Nieder
2011-03-18 22:53 ` Johannes Sixt
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=4D83BB0A.8070307@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).