public
Last active

  • Download Gist
.pre-commit
Shell
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.