Skip to content

Instantly share code, notes, and snippets.

@spudfkc
Last active August 29, 2015 13:57
Show Gist options
  • Save spudfkc/9375704 to your computer and use it in GitHub Desktop.
Save spudfkc/9375704 to your computer and use it in GitHub Desktop.
#!/bin/bash
git filter-branch -f --commit-filter '
if [ "$GIT_AUTHOR_EMAIL" = "user@host" ];
then
GIT_AUTHOR_NAME="spudfkc"
GIT_COMMITTER_NAME="spudfkc"
GIT_COMMITTER_EMAIL="[email protected]"
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