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

Re: stupid error - is there a way to fix?

From
ESEugene Sajine <euguess@gmail.com>
Date
May 17, 2010, 19:31 UTC
Message-ID
<AANLkTinIaInzOLiJcXNPtg4AQ2_TAxjBNzcheNlvSrft@mail.gmail.com>
In-Reply-To
<AANLkTimFZ1GCBIf9y8Gkz-AnG-TmvWU_WXfjgw1olmKi@mail.gmail.com>
On Mon, May 17, 2010 at 2:57 PM, Chris Packham <judge.packham@gmail.com> wrote:
Show 34 quoted lines
> On Mon, May 17, 2010 at 11:32 AM, Eugene Sajine <euguess@gmail.com> wrote:
>> Hi,
>>
>> Wanted to share some Admin nightmares;)
>>
>> Is there a way to correct a stupid error when few commits were made
>> under username Your Name and the same kind of stub email address
>> instead of normal name?
>>
>> Thanks,
>> Eugene
>> --
>
> There are a few ways (that I know of) to fix this.
>
> If you haven't pushed yet you can use "git rebase -i" [1] and edit the
> commit with "git commit --amend --reset-author" to fix up your local
> branch. Note that --reset-author is a fairly recent addition to git
> but the --author="name <email>" option is available for older
> versions.
>
> If no-one has cloned/pulled from that repository you can use "git
> filter-branch" [2] with an environment filter to update the name.
> Using filter branch (or anything else that re-writes history) is a
> last resort as it will cause problems for anyone that has cloned your
> repository.
>
> The preferred, non-destructive, method would be to include a .mailmap
> file [3] which can be used to remap authors names and email addresses.
> Some of the git tools can be told to ignore the mailmap so that stub
> email address will still be visible if people know where to look but
> thats usually fine unless you _really_ want to hide an email address
> for some reason.
>
Thanks a lot, Chris - that should help!
Eugene
Previous: Chris Packham
Message 3 of 3 in “stupid error - is there a way to fix?”
  1. Eugene SajineMay 17, 2010
  2. Chris PackhamMay 17, 2010
  3. Eugene SajineMay 17, 2010

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.