Created
July 29, 2014 15:43
-
-
Save harunyardimci/fb9022d18a9b4b7f957c to your computer and use it in GitHub Desktop.
To change email and author from old git commits
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" = "[email protected]" ]; | |
| then | |
| GIT_AUTHOR_NAME="New Name"; | |
| GIT_AUTHOR_EMAIL="[email protected]"; | |
| 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