Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Aug 2022 18:07:46 +0200
From:      Matthias Andree <mandree@FreeBSD.org>
To:        freebsd-git@freebsd.org
Subject:   Re: git wants to commit more files than expected ?
Message-ID:  <231aa2e6-5a07-0227-e673-2c766dc0f5c8@FreeBSD.org>
In-Reply-To: <CAFDf7U%2BQCPu%2BYCHqfJ%2BhmvgiX2j=W0qRRjCvnxbdmPns=fN37g@mail.gmail.com>
References:  <Yvd0ziIpQpZTjVyd@fc.opsec.eu> <99af6a44013b44d7ec1196bc3809e3aa@FreeBSD.org> <YvfC8Inx6FtrlaT6@fc.opsec.eu> <CAFDf7U%2BQCPu%2BYCHqfJ%2BhmvgiX2j=W0qRRjCvnxbdmPns=fN37g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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".




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?231aa2e6-5a07-0227-e673-2c766dc0f5c8>