I used the wonderful git filter-branch
script to rewrite all author and committer emails. I even used --tag-name-filter cat
to rewrite the tags:
git filter-branch --tag-name-filter cat --env-filter '
if test "$GIT_AUTHOR_EMAIL" = "foo@example.com"
then
GIT_AUTHOR_EMAIL=bar@example.com
fi
if test "$GIT_COMMITTER_EMAIL" = "foo@example.com"
then
GIT_COMMITTER_EMAIL=bar@example.com
fi
' -- --all
Everything seemed to work OK, except that the rewritten tags still have a "tagger" property with the email set to foo@example.com
. I read the [filter-branch
documentation][1], yet I can't find anything similar to TAGGER_EMAIL
.
How can I change the tagger email when updating the Git history?