threads / discuss / 17997

Altering Previous Commits' Author Field.

Subject: Altering Previous Commits' Author Field.

## tl;dr

3 messages between Feb 24, 2009 and Feb 24, 2009.

replies: 2people: 2as markdown or json

Tim Visher· Feb 24, 2009, 21:29 UTC · lore
Hello Everyone,

I have two identities that git knows me as, one for personal and the other for work. I just realized that I project I've been doing some work on at work was using the global config file on that box because I had forgotten to a project specific config to change my identity. Is there any way for me to edit the history so that the Author of all of those commits is changed to my personal identity?

Thanks in advance!
-- 
In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail
Robin Rosenberg· Feb 24, 2009, 21:43 UTC · re: Tim Visher · lore

Re: Altering Previous Commits' Author Field.

tisdag 24 februari 2009 22:29:15 skrev Tim Visher <tim.visher@gmail.com>:
Show 8 quoted lines
> Hello Everyone,
> 
> I have two identities that git knows me as, one for personal and the
> other for work.  I just realized that I project I've been doing some
> work on at work was using the global config file on that box because I
> had forgotten to a project specific config to change my identity.  Is
> there any way for me to edit the history so that the Author of all of
> those commits is changed to my personal identity?

If you haven't published your branch you can use git-filter-branch to rewrite using the --env-filter "export GIT_AUTHOR_NAME=... etc"

-- robin
Tim Visher· Feb 24, 2009, 22:16 UTC · re: Robin Rosenberg · lore

Re: Altering Previous Commits' Author Field.

On Tue, Feb 24, 2009 at 4:43 PM, Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:

> If you haven't published your branch you can use git-filter-branch to
> rewrite using the --env-filter "export GIT_AUTHOR_NAME=...  etc"
Awesome!  That's exactly what I was looking for! Thank you! :)
-- 
In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail

← back to recent threads