Created
February 25, 2016 00:09
-
-
Save cameron/74ea60c788f8fe236931 to your computer and use it in GitHub Desktop.
DONTCOMMIT pre-commit hook
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
MATCHES=$(grep -rn --exclude-dir=node_modules --exclude-dir=.git "DONTCOMMIT\|<<<<" .) | |
if [ $? == 0 ]; then | |
echo "remove DONTCOMMITs and conflicts before committing" | |
echo $MATCHES | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment