Re: how to squash two commits into only one
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 29, 2011, 18:28 UTC
- Message-ID
- <7v1v1psrvr.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <AANLkTinjbXzdfkxVRPPSXJj6Z0mMrikzdi2V8N5YAGR-@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:
>> Actually, that should be: `git reset --soft HEAD^; git commit --amend`. > > "git rebase --root" does not seem a bad idea though.
The lack of this did't annoy me enough (one woudln't have to deal with root commits too often) so I wouldn't bother implementing it myself, but "git rebase --root" especially with "-i" would be a nice addition.
i.e. well written and explained patches welcome.