Skip to content

Instantly share code, notes, and snippets.

@larsxschneider
Created February 26, 2018 12:36
Show Gist options
  • Save larsxschneider/f845b833a780bfaef2b4e41c9fd16d5f to your computer and use it in GitHub Desktop.
Save larsxschneider/f845b833a780bfaef2b4e41c9fd16d5f to your computer and use it in GitHub Desktop.
set commit name/email/date to author
git filter-branch --commit-filter '\
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME";\
export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL";\
export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE";\
git commit-tree "$@"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment