Skip to content

Instantly share code, notes, and snippets.

@sscotth
Last active November 23, 2015 21:53
Show Gist options
  • Save sscotth/55e7265c73b6d9bcbdbe to your computer and use it in GitHub Desktop.
Save sscotth/55e7265c73b6d9bcbdbe to your computer and use it in GitHub Desktop.
Reset commits before push
git filter-branch -commit-filter 'if [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ]; then export GIT_AUTHOR_NAME="Scott Humphries"; export [email protected]; export GIT_COMMITTER_NAME="Scott Humphries"; export [email protected]; fi; git commit-tree "$@"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment