From: Jonathan Nieder Date: Fri, 07 Jan 2011 17:13:29 GMT Subject: Re: [PATCH] commit: suggest --amend --reset-author to fix commiter identity Message-ID: <20110107171329.GA16571@burratino> In-Reply-To: <1294409671-5479-1-git-send-email-Matthieu.Moy@imag.fr> Matthieu Moy wrote: > --- a/builtin/commit.c > +++ b/builtin/commit.c > @@ -47,7 +47,11 @@ static const char implicit_ident_advice[] = > "\n" > "If the identity used for this commit is wrong, you can fix it with:\n" > "\n" > -" git commit --amend --author='Your Name '\n"; > +" git commit --amend --author='Your Name '\n" > +"\n" > +"or\n" > +"\n" > +" git commit --amend --reset-author\n"; > This message gets used when the author was set from gecos because not available in the configuration. Do you perhaps mean: If the identity used for this commit is wrong, you can fix it with: git commit --amend --author='Your Name ' git commit --amend --author='Your Name ' or cat <>~/.gitconfig [user] name = Your Name email = you@example.com EOF git commit --amend --reset-author ?