Skip to content

Instantly share code, notes, and snippets.

@Mr-Kumar-Abhishek
Last active February 6, 2018 16:05
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 Mr-Kumar-Abhishek/cff1fe4178f33fdd396572b2972d877d to your computer and use it in GitHub Desktop.
Save Mr-Kumar-Abhishek/cff1fe4178f33fdd396572b2972d877d to your computer and use it in GitHub Desktop.
rewrite git history with your new email
git filter-branch -f --env-filter \
"GIT_AUTHOR_NAME='Newname'; GIT_AUTHOR_EMAIL='newemail'; \
GIT_COMMITTER_NAME='committed-name'; GIT_COMMITTER_EMAIL='committed-email';" HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment