Q: rebasing (moving) a whole tree (not just one branch)
- From
- Dirk Süsserott <newsletter@dirk.my1.cc>
- Date
- Mar 18, 2011, 20:05 UTC
- Message-ID
- <4D83BB0A.8070307@dirk.my1.cc>
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 -- FI'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