Skip to content

Instantly share code, notes, and snippets.

@nevermoe
Created May 10, 2018 04:38
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 nevermoe/0b87829b12ccd680b1669122f4252db2 to your computer and use it in GitHub Desktop.
Save nevermoe/0b87829b12ccd680b1669122f4252db2 to your computer and use it in GitHub Desktop.
git filter-branch --commit-filter '
if [ "$GIT_COMMITTER_NAME" = "OLD NAME" ];
then
GIT_COMMITTER_NAME="nevermoe";
GIT_AUTHOR_NAME="nevermoe@users.noreply.github.com";
GIT_COMMITTER_EMAIL="nevermoe@users.noreply.github.com";
GIT_AUTHOR_EMAIL="nevermoe@users.noreply.github.com";
git commit-tree "$@";
else
git commit-tree "$@";
fi' HEAD
# from: http://stackoverflow.com/a/870367/36850
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment