Last active
August 29, 2015 13:57
-
-
Save spudfkc/9375704 to your computer and use it in GitHub Desktop.
Borrowed from http://git-scm.com/book/ch6-4.html
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
| #!/bin/bash | |
| git filter-branch -f --commit-filter ' | |
| if [ "$GIT_AUTHOR_EMAIL" = "user@host" ]; | |
| then | |
| GIT_AUTHOR_NAME="spudfkc" | |
| GIT_COMMITTER_NAME="spudfkc" | |
| GIT_COMMITTER_EMAIL="[email protected]" | |
| 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