Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View .pre-commit
1 2 3 4 5 6 7
#!/bin/bash
while read LINE
do
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
Something went wrong with that request. Please try again.