Re: git-kill: rewrite history removing a commit
- From
- Michael S. Tsirkin <mst@mellanox.co.il>
- Date
- Jan 31, 2007, 20:54 UTC
- Message-ID
- <20070131205402.GH21097@mellanox.co.il>
- In-Reply-To
- <7v7iv3uelv.fsf@assigned-by-dhcp.cox.net>
Show 6 quoted lines
> 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