From: Michael S. Tsirkin Date: Wed, 31 Jan 2007 20:54:02 GMT Subject: Re: git-kill: rewrite history removing a commit Message-ID: <20070131205402.GH21097@mellanox.co.il> In-Reply-To: <7v7iv3uelv.fsf@assigned-by-dhcp.cox.net> > When I find master~8 and master~9 to be undesirable, I would do: > > $ git rebase --onto master~10 master~8 > > which rebuilds master~7 and onward on top of master~10, thereby > dropping two commits. That's good to know. So it turns out I can just rewrite mine as a one-liner: git-rebase --onto $1~1 $1 Thanks, -- MST