Last active
August 29, 2015 14:20
-
-
Save jrdmb/9d4426b24a851d285706 to your computer and use it in GitHub Desktop.
from Pro-Git eBook
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
# from topic "Changing E-Mail Addresses Globally in Pro-Git eBook (location 3892 of 9052) | |
git filter-branch --commit-filter ' | |
if [ "$GIT_AUTHOR_EMAIL" = "my_old_email@me.com" ]; | |
then | |
GIT_AUTHOR_EMAIL="my_new_email.@me.com"; | |
git commit-tree "$@"; | |
else | |
git commit-tree "$@"; | |
fi' HEAD | |
# also (location 291): | |
git config --global user.email me@me.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment