Last active
December 17, 2015 08:28
-
-
Save wstucco/5579891 to your computer and use it in GitHub Desktop.
change committer email and rewrite history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git filter-branch --commit-filter ' | |
if [ "$GIT_AUTHOR_EMAIL" = "<email>" ]; | |
then | |
GIT_COMMITTER_EMAIL="<new-email>"; | |
GIT_AUTHOR_EMAIL="<new-email>"; | |
git commit-tree "$@"; | |
else | |
git commit-tree "$@"; | |
fi' HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment