Created
November 7, 2015 15:49
-
-
Save renefs/89310a665c711f445078 to your computer and use it in GitHub Desktop.
How to rewrite git commit username and password.
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 -f --env-filter \ | |
"GIT_AUTHOR_NAME='<NEW USERNAME>'; GIT_AUTHOR_EMAIL='<NEW EMAIL>'; \ | |
GIT_COMMITTER_EMAIL='<Old Email>';" HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git push origin +master