Last active
August 29, 2015 14:16
-
-
Save 7kfpun/5eb68a574e4d830047e5 to your computer and use it in GitHub Desktop.
Rename committer
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
git filter-branch --commit-filter ' | |
if [ "$GIT_AUTHOR_EMAIL" = GIT_AUTHOR_EMAIL ]; | |
then | |
GIT_AUTHOR_NAME="kf"; | |
GIT_COMMITTER_NAME="kf"; | |
GIT_AUTHOR_EMAIL="[email protected]"; | |
GIT_COMMITTER_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