Create a gist now

Instantly share code, notes, and snippets.

Useful git hooks
# stash unstaged changes so they are not included in the tests
git stash -q --keep-index
npm test
# 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