Re: git wants to commit more files than expected ?

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Sat, 13 Aug 2022 16:07:46 UTC
Am 13.08.22 um 17:45 schrieb Nuno Teixeira:
> Hi,
>
> I always forgot to use `git commit --amend` when commit needed some 
> correction/change. I usually do a `git reset --hard ^HEAD` and then 
> commit from scratch :)
>
> Next commit I do I will use amend and see if I got similar problem 
> like yours.

--amend means "tack what is currently marked for commit onto the 
previous commit, rewriting it and changing its hash".