* stupid error - is there a way to fix?
@ 2010-05-17 18:32 Eugene Sajine
2010-05-17 18:57 ` Chris Packham
0 siblings, 1 reply; 3+ messages in thread
From: Eugene Sajine @ 2010-05-17 18:32 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: stupid error - is there a way to fix?
2010-05-17 18:32 stupid error - is there a way to fix? Eugene Sajine
@ 2010-05-17 18:57 ` Chris Packham
2010-05-17 19:31 ` Eugene Sajine
0 siblings, 1 reply; 3+ messages in thread
From: Chris Packham @ 2010-05-17 18:57 UTC (permalink / raw)
To: Eugene Sajine; +Cc: git
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.
---
[1] http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html#_interactive_mode
[2] http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html
[3] http://www.kernel.org/pub/software/scm/git/docs/git-shortlog.html#_mapping_authors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: stupid error - is there a way to fix?
2010-05-17 18:57 ` Chris Packham
@ 2010-05-17 19:31 ` Eugene Sajine
0 siblings, 0 replies; 3+ messages in thread
From: Eugene Sajine @ 2010-05-17 19:31 UTC (permalink / raw)
To: Chris Packham; +Cc: git
On Mon, May 17, 2010 at 2:57 PM, Chris Packham <judge.packham@gmail.com> wrote:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-17 19:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-17 18:32 stupid error - is there a way to fix? Eugene Sajine
2010-05-17 18:57 ` Chris Packham
2010-05-17 19:31 ` Eugene Sajine
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).