Skip to content

Instantly share code, notes, and snippets.

@ayoayco
Created November 4, 2021 05:10
Show Gist options
  • Save ayoayco/ca15deff1bf6b2d26eba9e155b8be848 to your computer and use it in GitHub Desktop.
Save ayoayco/ca15deff1bf6b2d26eba9e155b8be848 to your computer and use it in GitHub Desktop.
Update Commits Author Email
git filter-branch --commit-filter '
if [ "$GIT_AUTHOR_EMAIL" = "mail@ayco.io" ];
then
GIT_AUTHOR_EMAIL="ramon.aycojr@gmail.com";
git commit-tree "$@";
else
git commit-tree "$@";
fi' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment