Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
while read LINE
grep -q "$LINE" <(git diff --cached) && echo "Fail words found: '$LINE'
Fix your commit damn it..." && exit 1
done < .git_fail_words
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment