Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Useful git hooks

View pre-commit.sh
1 2 3 4 5 6 7 8 9 10 11
# stash unstaged changes so they are not included in the tests
git stash -q --keep-index
 
npm test
RESULT=$?
 
# put the unstaged changes back
git stash pop -q
 
[ $RESULT -ne 0 ] && exit 1
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.