Skip to content

Instantly share code, notes, and snippets.

@eirikb
Created September 21, 2011 06:40
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 eirikb/1231414 to your computer and use it in GitHub Desktop.
Save eirikb/1231414 to your computer and use it in GitHub Desktop.
git filter-branch -f --commit-filter '
if [ "$GIT_AUTHOR_NAME" = "eirikb@heavyload" ];
then
GIT_COMMITTER_NAME="<Eirik Brandtzæg>";
GIT_AUTHOR_NAME="<Eirik Brandtzæg>";
GIT_COMMITTER_EMAIL="<eirikb@eirikb.no>";
GIT_AUTHOR_EMAIL="<eirikb@eirikb.no>";
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