Created
March 12, 2016 11:18
-
-
Save toidang92/212f7d5da6ae36c4cda1 to your computer and use it in GitHub Desktop.
Change author of many 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 --env-filter 'if [ "$GIT_AUTHOR_EMAIL" = "incorrect@email" ]; then | |
GIT_AUTHOR_EMAIL=correct@email; | |
GIT_AUTHOR_NAME="Correct Name"; | |
GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL; | |
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"; fi' -- --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment