Created
March 25, 2015 09:20
-
-
Save ifyouseewendy/f18ec9328eacdcd02e8d to your computer and use it in GitHub Desktop.
Update git commit history using git-filter-branch
This file contains hidden or 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 -f --commit-filter ' | |
if [ "$GIT_COMMITTER_NAME" = "<Old name>" ]; | |
then | |
GIT_COMMITTER_NAME="<New name>"; | |
GIT_COMMITTER_EMAIL="<New email>"; | |
GIT_AUTHOR_NAME="<New name>"; | |
GIT_AUTHOR_EMAIL="<New email>"; | |
else | |
git commit-tree "$@"; | |
fi' -- --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment