Created
October 4, 2015 23:39
-
-
Save hkdnet/ca4a958e84c37d90757f to your computer and use it in GitHub Desktop.
.git/hooks/pre-commit
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
#!/usr/bin/env ruby | |
if `git branch`.chomp.split("\n").find { |e| e == '* master' } | |
puts 'ここはmasterブランチ。許可のないやつは通せないぜ > 乂・д・)' | |
exit false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment