Re: A couple of rebase --autosquash proposals
Johannes Sixt <j.sixt@viscovery.net> writes:
Show 7 quoted lines
> Am 12/9/2013 3:23, schrieb Brett Randall:
>> * fixup! or squash! on it's own would default to fixing-up the
>> previous commit (or result of previous step of rebase if that was a
>> squash/fixup).
>
> Why would you want that? To fixup the previous commit, just use 'git
> commit --amend'. What am I missing?
When you are not absolutely sure if the amend is a good thing to do.
Then
work work work
git commit --fixup HEAD
work work work
git commit --fixup HEAD^
work work work
git commit --fixup HEAD^^
...
git rebase --autosquash -i ...may become a good way to polish a single commit.