Skip to content

Instantly share code, notes, and snippets.

@aectann
Created May 2, 2014 17:10
Show Gist options
  • Save aectann/4a64d55dc344a9c63452 to your computer and use it in GitHub Desktop.
Save aectann/4a64d55dc344a9c63452 to your computer and use it in GitHub Desktop.
Override all git commits' author & comitter.
git filter-branch -f --commit-filter 'export GIT_AUTHOR_NAME="Author name" ; export GIT_AUTHOR_EMAIL=author_email@example.com; export GIT_COMMITTER_NAME="Comitter Name"; export GIT_COMMITTER_EMAIL=comitter_email@example.com; git commit-tree "$@"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment