From: Jonathan Nieder <jrnieder@gmail.com>
To: Matthieu Moy <Matthieu.Moy@imag.fr>
Cc: git@vger.kernel.org, gitster@pobox.com
Subject: Re: [PATCH] commit: suggest --amend --reset-author to fix commiter identity
Date: Fri, 7 Jan 2011 11:13:29 -0600 [thread overview]
Message-ID: <20110107171329.GA16571@burratino> (raw)
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 <you@example.com>'\n";
> +" git commit --amend --author='Your Name <you@example.com>'\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 <you@example.com>'
git commit --amend --author='Your Name <you@example.com>'
or
cat <<EOF >>~/.gitconfig
[user]
name = Your Name
email = you@example.com
EOF
git commit --amend --reset-author
?
next prev parent reply other threads:[~2011-01-07 17:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-07 14:14 [PATCH] commit: suggest --amend --reset-author to fix commiter identity Matthieu Moy
2011-01-07 17:13 ` Jonathan Nieder [this message]
2011-01-07 17:16 ` Matthieu Moy
2011-01-07 17:34 ` Jonathan Nieder
2011-01-07 19:51 ` Junio C Hamano
2011-01-08 10:56 ` Matthieu Moy
2011-01-11 5:34 ` Jeff King
2011-01-11 14:07 ` Matthieu Moy
2011-01-12 18:29 ` [PATCH v2] " Matthieu Moy
2011-01-12 18:39 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110107171329.GA16571@burratino \
--to=jrnieder@gmail.com \
--cc=Matthieu.Moy@imag.fr \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).