Skip to content

Instantly share code, notes, and snippets.

@ypresto
Created April 24, 2012 02:57
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 ypresto/2475822 to your computer and use it in GitHub Desktop.
Save ypresto/2475822 to your computer and use it in GitHub Desktop.
Change author and committer and their emails of all commits in the branch on Git
git filter-branch --commit-filter '
GIT_AUTHOR_NAME="Yuya Tanaka";
GIT_AUTHOR_EMAIL="yuya.tanaka.i@gmail.com";
GIT_COMMITTER_NAME="Yuya Tanaka";
GIT_COMMITTER_EMAIL="yuya.tanaka.i@gmail.com";
git commit-tree "$@";' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment