Created
November 5, 2014 07:17
-
-
Save maxvipon/0cd8db5adf65e2976ae3 to your computer and use it in GitHub Desktop.
Change commit author or email
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_NAME" = "OldAuthor Name" ]; then \ | |
export GIT_AUTHOR_NAME="Author Name";\ | |
export GIT_AUTHOR_EMAIL=authorEmail@example.com;\ | |
export GIT_COMMITTER_NAME="Commmiter Name";\ | |
export GIT_COMMITTER_EMAIL=commiterEmail@example.com;\ | |
fi;\ | |
git commit-tree "$@"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment