summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 54f4cd9)
raw | patch | inline | side by side (parent: 54f4cd9)
author | Matthieu Moy <Matthieu.Moy@imag.fr> | |
Wed, 12 Jan 2011 18:29:14 +0000 (19:29 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 12 Jan 2011 20:43:58 +0000 (12:43 -0800) |
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 <Matthieu.Moy@imag.fr>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 <Matthieu.Moy@imag.fr>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c | patch | blob | history |
diff --git a/builtin/commit.c b/builtin/commit.c
index 3bcb4b7ec040c4896593b75b3e574951891d016f..6e2f12accc82b02863736a10ae5c107717f96a96 100644 (file)
--- a/builtin/commit.c
+++ b/builtin/commit.c
" git config --global user.name \"Your Name\"\n"
" git config --global user.email you@example.com\n"
"\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"
"\n"
-" git commit --amend --author='Your Name <you@example.com>'\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"