Skip to content

Instantly share code, notes, and snippets.

Created August 10, 2010 18:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/1911572e92dd53a3cfd6 to your computer and use it in GitHub Desktop.
$ git filter-branch --commit-filter 'if [ "$GIT_COMMITER_NAME" = "oldname" ];
then
GIT_COMMITER_NAME="newname";
GIT_AUTHOR_NAME="newname";
GIT_COMITTER_EMAIL="new@mail.com";
GIT_AUTHOR_EMAIL="new@mail.com";
git commit-tree "$@";
else
git commit-tree "$@";
fi' HEAD
Rewrite 8874a28cc870b1fbfe10f2c29e0e714d4be961f7 (50/50)
WARNING: Ref 'refs/heads/master' is unchanged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment