Skip to content

Instantly share code, notes, and snippets.

@ypresto
Created April 24, 2012 02:57
Show Gist options
  • Select an option

  • Save ypresto/2475822 to your computer and use it in GitHub Desktop.

Select an option

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="[email protected]";
GIT_COMMITTER_NAME="Yuya Tanaka";
GIT_COMMITTER_EMAIL="[email protected]";
git commit-tree "$@";' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment