{"thread":{"id":"23831","subject":"stupid error - is there a way to fix?","startedAt":"2010-05-17T18:32:05Z","lastAt":"2010-05-17T19:31:01Z","messageCount":3,"participants":["Eugene Sajine","Chris Packham"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"141830","messageId":"AANLkTin32LGzfA79XYfivdun0EwWTs8p_yBeR030_2N2@mail.gmail.com","threadId":"23831","inReplyTo":null,"subject":"stupid error - is there a way to fix?","fromName":"Eugene Sajine","fromEmail":"euguess@gmail.com","sentAt":"2010-05-17T18:32:05Z","receivedAt":"2010-05-17T18:32:05Z","isPatch":false,"sender":{"key":"euguess@gmail.com","avatar":null},"body":"Hi,\n\nWanted to share some Admin nightmares;)\n\nIs there a way to correct a stupid error when few commits were made\nunder username Your Name and the same kind of stub email address\ninstead of normal name?\n\nThanks,\nEugene\n"},{"id":"141832","messageId":"AANLkTimFZ1GCBIf9y8Gkz-AnG-TmvWU_WXfjgw1olmKi@mail.gmail.com","threadId":"23831","inReplyTo":"AANLkTin32LGzfA79XYfivdun0EwWTs8p_yBeR030_2N2@mail.gmail.com","subject":"Re: stupid error - is there a way to fix?","fromName":"Chris Packham","fromEmail":"judge.packham@gmail.com","sentAt":"2010-05-17T18:57:12Z","receivedAt":"2010-05-17T18:57:12Z","isPatch":false,"sender":{"key":"judge.packham@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155667?v=4"},"body":"On Mon, May 17, 2010 at 11:32 AM, Eugene Sajine <euguess@gmail.com> wrote:\n> Hi,\n>\n> Wanted to share some Admin nightmares;)\n>\n> Is there a way to correct a stupid error when few commits were made\n> under username Your Name and the same kind of stub email address\n> instead of normal name?\n>\n> Thanks,\n> Eugene\n> --\n\nThere are a few ways (that I know of) to fix this.\n\nIf you haven't pushed yet you can use \"git rebase -i\" [1] and edit the\ncommit with \"git commit --amend --reset-author\" to fix up your local\nbranch. Note that --reset-author is a fairly recent addition to git\nbut the --author=\"name <email>\" option is available for older\nversions.\n\nIf no-one has cloned/pulled from that repository you can use \"git\nfilter-branch\" [2] with an environment filter to update the name.\nUsing filter branch (or anything else that re-writes history) is a\nlast resort as it will cause problems for anyone that has cloned your\nrepository.\n\nThe preferred, non-destructive, method would be to include a .mailmap\nfile [3] which can be used to remap authors names and email addresses.\nSome of the git tools can be told to ignore the mailmap so that stub\nemail address will still be visible if people know where to look but\nthats usually fine unless you _really_ want to hide an email address\nfor some reason.\n\n---\n[1] http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html#_interactive_mode\n[2] http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html\n[3] http://www.kernel.org/pub/software/scm/git/docs/git-shortlog.html#_mapping_authors\n"},{"id":"141837","messageId":"AANLkTinIaInzOLiJcXNPtg4AQ2_TAxjBNzcheNlvSrft@mail.gmail.com","threadId":"23831","inReplyTo":"AANLkTimFZ1GCBIf9y8Gkz-AnG-TmvWU_WXfjgw1olmKi@mail.gmail.com","subject":"Re: stupid error - is there a way to fix?","fromName":"Eugene Sajine","fromEmail":"euguess@gmail.com","sentAt":"2010-05-17T19:31:01Z","receivedAt":"2010-05-17T19:31:01Z","isPatch":false,"sender":{"key":"euguess@gmail.com","avatar":null},"body":"On Mon, May 17, 2010 at 2:57 PM, Chris Packham <judge.packham@gmail.com> wrote:\n> On Mon, May 17, 2010 at 11:32 AM, Eugene Sajine <euguess@gmail.com> wrote:\n>> Hi,\n>>\n>> Wanted to share some Admin nightmares;)\n>>\n>> Is there a way to correct a stupid error when few commits were made\n>> under username Your Name and the same kind of stub email address\n>> instead of normal name?\n>>\n>> Thanks,\n>> Eugene\n>> --\n>\n> There are a few ways (that I know of) to fix this.\n>\n> If you haven't pushed yet you can use \"git rebase -i\" [1] and edit the\n> commit with \"git commit --amend --reset-author\" to fix up your local\n> branch. Note that --reset-author is a fairly recent addition to git\n> but the --author=\"name <email>\" option is available for older\n> versions.\n>\n> If no-one has cloned/pulled from that repository you can use \"git\n> filter-branch\" [2] with an environment filter to update the name.\n> Using filter branch (or anything else that re-writes history) is a\n> last resort as it will cause problems for anyone that has cloned your\n> repository.\n>\n> The preferred, non-destructive, method would be to include a .mailmap\n> file [3] which can be used to remap authors names and email addresses.\n> Some of the git tools can be told to ignore the mailmap so that stub\n> email address will still be visible if people know where to look but\n> thats usually fine unless you _really_ want to hide an email address\n> for some reason.\n>\n\nThanks a lot, Chris - that should help!\n\nEugene\n"}]}