Skip to content

Instantly share code, notes, and snippets.

@MichaelBlume
Created April 10, 2011 23:57
Show Gist options
  • Save MichaelBlume/912867 to your computer and use it in GitHub Desktop.
Save MichaelBlume/912867 to your computer and use it in GitHub Desktop.
rename a comitter (works with AUTHOR in place of COMITTER, of course)
git filter-branch -f --commit-filter '
if [ "$GIT_COMMITTER_NAME" = "name" ];
then
GIT_COMMITTER_NAME="New Name";
GIT_COMMITTER_EMAIL="new@email.com.com";
git commit-tree "$@";
else
git commit-tree "$@";
fi' -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment