Anonymous committed 3f14246

commit: suggest --amend --reset-author to fix commiter identity

Since the message advises to fix the configuration first, the
advantage of using this command is that it is cut-and-paste ready,
while using --author='...' requires the user to type his name and
email again.

Signed-off-by: Matthieu Moy <>
Acked-by: Jeff King <>
Signed-off-by: Junio C Hamano <>

Comments (0)

Files changed (1)

 "    git config --global \"Your Name\"\n"
 "    git config --global\n"
-"If the identity used for this commit is wrong, you can fix it with:\n"
+"After doing this, you may fix the identity used for this commit with:\n"
-"    git commit --amend --author='Your Name <>'\n";
+"    git commit --amend --reset-author\n";
 static const char empty_amend_advice[] =
 "You asked to amend the most recent commit, but doing so would make\n"