Skip to content

Instantly share code, notes, and snippets.

@waiteb3
Last active December 15, 2015 02:27
Show Gist options
  • Save waiteb3/f04a99bdad6ce970d12f to your computer and use it in GitHub Desktop.
Save waiteb3/f04a99bdad6ce970d12f to your computer and use it in GitHub Desktop.
Install my recommended git-hooks with `curl ... | sh`
#!/bin/sh
# TODO
# findGitDir() {
# }
install() {
set +x
curl https://gist.github.com/waiteb3/b694eea1e9b470bee1ee -o .git/hooks/pre-push
chmod +x .git/hooks/pre-push
set -x
}
install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment