From: Jakub Narebski Date: Mon, 05 Feb 2007 20:38:47 GMT Subject: Re: replacing a bad commit Message-ID: In-Reply-To: <20070205195332.GW14499@daga.cl> Blu Corater wrote: > On Mon, Feb 05, 2007 at 05:38:18PM +0100, Jakub Narebski wrote: >> Try using >> >> $ git rebase --onto A' A local > > Thanks a lot, that did it. > > I've got confused by the wording of the git-rebase man page. It says: > > > Upstream branch to compare against > > Which suggests to me that must be a branch tip, and not a > random commit, as seems to be the case (well, not random, but reachable > from if I understand well). Also, the man page doesn't give any > example of rebasing using a random commit as , they all use > branch tips which reinforced my wrong assumption. Well, I think that two examples of using --onto should make it clear enough (especially second one), and both are quite similar to your situation I think. But I agree that git-rebase(1) needs clarification. Do you volunteer? ;-) -- Jakub Narebski Warsaw, Poland ShadeHawk on #git