Last active
November 23, 2015 21:53
-
-
Save sscotth/55e7265c73b6d9bcbdbe to your computer and use it in GitHub Desktop.
Reset commits before push
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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