Last active
August 29, 2015 14:27
-
-
Save nalabjp/89ff11b3ede5649130d3 to your computer and use it in GitHub Desktop.
Rename author name and committer name of git log
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_NAME" = "Hajime Kimura" ]; | |
then | |
GIT_AUTHOR_NAME="nalabjp"; | |
GIT_AUTHOR_EMAIL="[email protected]"; | |
GIT_COMMITTER_NAME="nalabjp"; | |
GIT_COMMITTER_EMAIL="[email protected]"; | |
git commit-tree "$@"; | |
else | |
git commit-tree "$@"; | |
fi | |
' HEAD | |
git update-ref -d refs/original/refs/heads/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment