Skip to content

Instantly share code, notes, and snippets.

@tjwudi

tjwudi/pre-commit

Created Apr 16, 2015
Embed
What would you like to do?
Git pre-commit hook
# Do not push to master
if [ $(git rev-parse --abbrev-ref HEAD) == "master" ]
then
echo 'Hello'
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment