Skip to content

Instantly share code, notes, and snippets.

@vikeri
Created August 25, 2015 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vikeri/e0e7d8559b3b4b640123 to your computer and use it in GitHub Desktop.
Save vikeri/e0e7d8559b3b4b640123 to your computer and use it in GitHub Desktop.
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