Created
January 18, 2017 05:16
-
-
Save Nixes/a5732e7440902991255281eea2ac467f to your computer and use it in GitHub Desktop.
Commands to change git / github commit email and user references
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 pull | |
git filter-branch -f --env-filter 'if [ "$GIT_AUTHOR_EMAIL" = "some_old_email@mail.com" ]; then GIT_AUTHOR_EMAIL=some_new_email@mail.com; GIT_AUTHOR_NAME="Github_username"; GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL; GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"; fi' -- --all | |
git push origin master --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment