Skip to content

Instantly share code, notes, and snippets.

@adamrights
Created March 27, 2014 16:09
Show Gist options
  • Save adamrights/9811146 to your computer and use it in GitHub Desktop.
Save adamrights/9811146 to your computer and use it in GitHub Desktop.
git filter-branch --commit-filter '
if [ "$GIT_AUTHOR_EMAIL" = "schacon@localhost" ];
then
GIT_AUTHOR_NAME="Scott Chacon";
GIT_AUTHOR_EMAIL="[email protected]";
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