From: Junio C Hamano Date: Fri, 18 Mar 2011 21:14:20 GMT Subject: Re: Q: rebasing (moving) a whole tree (not just one branch) Message-ID: <7vaagsw2qb.fsf@alter.siamese.dyndns.org> In-Reply-To: <20110318202637.GA23255@elie> Jonathan Nieder writes: > Dirk Süsserott wrote: > >> 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 > > I'd suggest cheating by making a merge of D and F and "rebase -p"-ing > that. :) > > To say something more sensible would probably require more information > about the particular application, though. I am not a huge fan of filter-branch, but shouldn't you be able to filter-branch D and F (and no other branch) on top of B?