Skip to content

Instantly share code, notes, and snippets.

@7kfpun
Last active August 29, 2015 14:16
Show Gist options
  • Save 7kfpun/5eb68a574e4d830047e5 to your computer and use it in GitHub Desktop.
Save 7kfpun/5eb68a574e4d830047e5 to your computer and use it in GitHub Desktop.
Rename committer
git filter-branch --commit-filter '
if [ "$GIT_AUTHOR_EMAIL" = GIT_AUTHOR_EMAIL ];
then
GIT_AUTHOR_NAME="kf";
GIT_COMMITTER_NAME="kf";
GIT_AUTHOR_EMAIL="7kfpun@gmail.com";
GIT_COMMITTER_EMAIL="7kfpun@gmail.com";
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