Last active
December 11, 2015 14:08
-
-
Save abackstrom/4611843 to your computer and use it in GitHub Desktop.
post-commit hook for @mikesusz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# curl https://gist.github.com/raw/4611843/gistfile1.sh > .git/hooks/post-commit && chmod +x .git/hooks/post-commit | |
git diff-tree -p HEAD^ | grep livereload 2>&1 >/dev/null | |
if [ $? -eq 0 ] ; then | |
echo -e "\e[0;31m!!! Don't commit livereload stuff. --amend that commit.\e[0m" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment