From: Matthieu Moy Date: Tue, 11 Jan 2011 14:07:40 GMT Subject: [PATCH] commit: suggest --amend --reset-author to fix commiter identity Message-ID: <1294754860-17701-1-git-send-email-Matthieu.Moy@imag.fr> In-Reply-To: Since the message advise to fix the configuration first, the advantage of this command is that it is cut-and-paste ready, while using --author='...' requires the user to type his name and email a second time. Signed-off-by: Matthieu Moy --- builtin/commit.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/builtin/commit.c b/builtin/commit.c index 22ba54f..440223c 100644 --- 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"; static const char empty_amend_advice[] = "You asked to amend the most recent commit, but doing so would make\n" -- 1.7.4.rc0.2.g3e22c.dirty