Created
April 9, 2019 08:36
-
-
Save akira-kuriyama/39554efe88ca4b4e7a0b4103b469bdaf to your computer and use it in GitHub Desktop.
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
% cat .git/hooks/pre-commit | |
#!/bin/sh | |
branch=$(git symbolic-ref --short HEAD) | |
if test "$branch" = "master" | |
then | |
cat <<\EOF | |
masterへのコミット禁止!!!!! | |
EOF | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment