Skip to content

Instantly share code, notes, and snippets.

@LukasRychtecky
Created June 29, 2013 07:21
Show Gist options
  • Save LukasRychtecky/5890212 to your computer and use it in GitHub Desktop.
Save LukasRychtecky/5890212 to your computer and use it in GitHub Desktop.
Changes a commiter's email address
git filter-branch --commit-filter '
if [ "$GIT_AUTHOR_EMAIL" = "foo" ];
then
GIT_AUTHOR_EMAIL="bar";
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