Skip to content

Instantly share code, notes, and snippets.

@kfitfk
Created November 28, 2013 03:18
Show Gist options
  • Save kfitfk/7686799 to your computer and use it in GitHub Desktop.
Save kfitfk/7686799 to your computer and use it in GitHub Desktop.
Change git commit email
git filter-branch -f --commit-filter '
if [ "$GIT_COMMITTER_NAME" = "yehao" ];
then
GIT_COMMITTER_NAME="Lingzheng";
GIT_AUTHOR_NAME="Lingzheng";
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