Created
May 29, 2017 11:00
-
-
Save shivabhusal/28ad3e293ee14f5e45c78ea9224ba9f5 to your computer and use it in GitHub Desktop.
This will update all the commits with new information
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 --commit-filter \ | |
| 'if [ "$GIT_AUTHOR_EMAIL" = "old_email" ]; then \ | |
| export GIT_AUTHOR_NAME="Shiva Bhusal";\ | |
| export GIT_AUTHOR_EMAIL=new_emil;\ | |
| export GIT_COMMITTER_NAME="Shiva Bhusal";\ | |
| export GIT_COMMITTER_EMAIL="[email protected]";\ | |
| fi;\ | |
| git commit-tree "$@"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment