Skip to content

Instantly share code, notes, and snippets.

@jvorcak
Created July 23, 2013 07:56
Show Gist options
  • Save jvorcak/6060613 to your computer and use it in GitHub Desktop.
Save jvorcak/6060613 to your computer and use it in GitHub Desktop.
How to change author of old commits
git filter-branch --commit-filter 'if [ "$GIT_AUTHOR_NAME" = "Jan Vorcak" ];
then export GIT_AUTHOR_NAME="Jan Vorcak"; export GIT_AUTHOR_EMAIL=jan@example.com;
fi; git commit-tree "$@"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment