How do I edit git's history to correct an incorrect email address/name

Posted by Chas. Owens on Server Fault See other posts from Server Fault or by Chas. Owens
Published on 2009-05-26T20:56:31Z Indexed on 2014/06/02 21:31 UTC
Read the original article Hit count: 197

Filed under:

When I started using git I just did a git init and started calling add and commit. Now I am starting to pay attention and I can see that my commits are showing up as cowens@localmachine, rather than the address I want. It appears as if setting GIT_AUTHOR_EMAIL and GIT_COMMITTER_EMAIL will do what I want, but I still have those old commits with the wrong email address/name. How can I correct the old commits?

© Server Fault or respective owner

Related posts about git