Skip to content

Instantly share code, notes, and snippets.

@sscotth
Last active November 23, 2015 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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" = "scott@Scotts-MacBook-Pro.local" ]; then export GIT_AUTHOR_NAME="Scott Humphries"; export GIT_AUTHOR_EMAIL=git@sscotth.io; export GIT_COMMITTER_NAME="Scott Humphries"; export GIT_COMMITTER_EMAIL=git@sscotth.io; fi; git commit-tree "$@"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment