Skip to content

Instantly share code, notes, and snippets.

@renefs
Created November 7, 2015 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renefs/89310a665c711f445078 to your computer and use it in GitHub Desktop.
Save renefs/89310a665c711f445078 to your computer and use it in GitHub Desktop.
How to rewrite git commit username and password.
git filter-branch -f --env-filter \
"GIT_AUTHOR_NAME='<NEW USERNAME>'; GIT_AUTHOR_EMAIL='<NEW EMAIL>'; \
GIT_COMMITTER_EMAIL='<Old Email>';" HEAD
@renefs
Copy link
Author

renefs commented Nov 7, 2015

git push origin +master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment