Created
October 5, 2015 21:43
-
-
Save cmmartin/163e0c999024520f9824 to your computer and use it in GitHub Desktop.
Never accidentally commit console.log again
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
gitadd() { | |
git diff | grep "console.log" || git add $1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment