Skip to content

Instantly share code, notes, and snippets.

@ignisf
Created August 16, 2013 13:43
Show Gist options
  • Save ignisf/6250086 to your computer and use it in GitHub Desktop.
Save ignisf/6250086 to your computer and use it in GitHub Desktop.
Change committer name and e-mail
git filter-branch --commit-filter '
if [ "$GIT_AUTHOR_NAME" = "original_commiter" ];
then
GIT_COMMITTER_NAME="New Committer";
GIT_AUTHOR_NAME="New Committer";
GIT_COMMITTER_EMAIL="[email protected]";
GIT_AUTHOR_EMAIL="new.email.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