Re: Retroactively change email signature?
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Jan 2, 2008, 21:17 UTC
- Message-ID
- <m3ejczordw.fsf@roke.D-201>
- In-Reply-To
- <9b3e2dc20801021237v4d5d236fn3d2643502b9bb78f@mail.gmail.com>
"Stephen Sinclair" <radarsat1@gmail.com> writes:
Show 12 quoted lines
> 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.
Show 7 quoted lines
> 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