Skip to content

Instantly share code, notes, and snippets.

@vikeri

vikeri/pre-commit

Created Aug 25, 2015
Embed
What would you like to do?
Avoid commiting println in clojure
#!/bin/sh
if git diff --cached | grep 'println';
then
tput setaf 1; echo "ERROR: You tried to commit a println statement"
tput bel
exit 1;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment