Skip to content

Instantly share code, notes, and snippets.

@adedayojs
Created October 18, 2021 15:19
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 adedayojs/2877d277d9f414b4a56b7ca6edc61586 to your computer and use it in GitHub Desktop.
Save adedayojs/2877d277d9f414b4a56b7ca6edc61586 to your computer and use it in GitHub Desktop.
Rewrite Git author history
# Be careful not to use this when you are working with an online repository
# Replace the fields containing the email and name with the appropriate values
git filter-branch -f --env-filter \
"GIT_AUTHOR_NAME='adedayojs'; GIT_AUTHOR_EMAIL='samfeolu@gmail.com'; \
GIT_COMMITTER_NAME='adedayojs'; GIT_COMMITTER_EMAIL='samfeolu@gmail.com';" HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment