Skip to content

Instantly share code, notes, and snippets.

@stephenway
Created December 3, 2015 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephenway/6f7adfb0bc9b0b2d0ecb to your computer and use it in GitHub Desktop.
Save stephenway/6f7adfb0bc9b0b2d0ecb to your computer and use it in GitHub Desktop.
Rewrite git author name and email
git filter-branch --commit-filter 'if [ "$GIT_AUTHOR_NAME" = "Josh Lee" ];
then export GIT_AUTHOR_NAME="Hobo Bob"; export GIT_AUTHOR_EMAIL=hobo@example.com;
fi; git commit-tree "$@"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment