Fixing user infos in git commits

June 29th, 2010 by Jérôme Leave a reply »

After I easily switched from Mercurial to Git, I needed to update the committer’s name and email adress. I found that using git filter-branch could help me.

Here is what I did :

git filter-branch --env-filter \
'export GIT_AUTHOR_NAME="Foo" ; GIT_AUTHOR_EMAIL="foo.bar@example.com"'

And git updated the author’s name and author’s email for every commit.

‘Hope that helps :)

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
Advertisement

Leave a Reply

Comments will be closed on October 27, 2010.