From: Jakub Narebski <jnareb@gmail.com>
To: "Stephen Sinclair" <radarsat1@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Retroactively change email signature?
Date: Wed, 02 Jan 2008 13:17:00 -0800 (PST) [thread overview]
Message-ID: <m3ejczordw.fsf@roke.D-201> (raw)
In-Reply-To: <9b3e2dc20801021237v4d5d236fn3d2643502b9bb78f@mail.gmail.com>
"Stephen Sinclair" <radarsat1@gmail.com> writes:
> I imagine that changing old commits is considered one of the great
> evils of source control, but I have a small problem:
> I have a habit of testing my code on several different computers and
> operating systems. Sometimes when setting up a new computer for
> testing (and thus, for development, since testing always results in a
> few commits), I have forgotten to use git-config to configure my name
> and email address.
>
> Since git doesn't warn when I've forgotten to do this, my git-log is
> now sprinkled with various email addresses, some which are just my
> username@hostname. This is completely useless to people who might
> view my public repository.
This most certainly should get addressed IMHO.
> Is it possible to retroactively change the author and email of several
> commits? Perhaps some sort of search-and-replace for the commit
> metadata? Even for older commits, I'd like to change the email
> addresses to my current address.
>
> If it's not possible it's not the end of the world, but I thought it
> wouldn't hurt to ask.
You can use git-filter-branch(1), but please remember that it is
practically rewriting whole repository, so you should do this _before_
you publish any changes.
--
Jakub Narebski
Poland
ShadeHawk on #git
next prev parent reply other threads:[~2008-01-02 21:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-02 20:37 Retroactively change email signature? Stephen Sinclair
2008-01-02 21:17 ` Jakub Narebski [this message]
2008-01-02 21:24 ` Linus Torvalds
2008-01-02 22:06 ` Stephen Sinclair
2008-01-03 0:53 ` David Brown
2008-01-03 5:52 ` Retroactively change email signature? [resend] Sam Vilain
2008-01-04 18:34 ` Linus Torvalds
2008-01-04 23:04 ` Sam Vilain
2008-01-04 23:08 ` Sam Vilain
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=m3ejczordw.fsf@roke.D-201 \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=radarsat1@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.