git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] commit: suggest --amend --reset-author to fix commiter identity

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 7, 2011, 17:34 UTC
Message-ID
<20110107173428.GC16571@burratino>
In-Reply-To
<vpq7hegmy66.fsf@bauges.imag.fr>
Matthieu Moy wrote:
Show 12 quoted lines
> The complete message says:
> 
> "Your name and email address were configured automatically based\n"
> "on your username and hostname. Please check that they are accurate.\n"
> "You can suppress this message by setting them explicitly:\n"
> "\n"
> "    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"
> "\n"
> "    git commit --amend --author='Your Name <you@example.com>'\n"
Sloppy reading on my part.  So the original text explains:
	how to configure your identity globally
	how to change the identity for a single commit
> "\n"
> "or\n"
> "\n"
> "    git commit --amend --reset-author\n";
Maybe:
	If the identity used for this commit is wrong, you can fix it:
	    git commit --amend --author='Patch Submitter <author@example.com>'
	To just use your newly configured identity:
	    git commit --amend --reset-author

(modulo wording). The idea being to make it clear to the user why we are telling two ways to do the same thing.

Sorry for the nonsense. Jonathan

Previous: Matthieu MoyNext: Junio C Hamano
Message 4 of 10 in “commit: suggest --amend --reset-author to fix commiter identity”
  1. commit: suggest --amend --reset-author to fix commiter identityMatthieu Moy, Jan 7, 2011
  2. Jonathan NiederJan 7, 2011
  3. Matthieu MoyJan 7, 2011
  4. Jonathan NiederJan 7, 2011
  5. Junio C HamanoJan 7, 2011
  6. Matthieu MoyJan 8, 2011
  7. Jeff KingJan 11, 2011
  8. commit: suggest --amend --reset-author to fix commiter identityMatthieu Moy, Jan 11, 2011
  9. commit: suggest --amend --reset-author to fix commiter identityMatthieu Moy, Jan 12, 2011
  10. Jeff KingJan 12, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.