èª²é¡ ãã£ããmasterã«ã³ããããã¦ãã¾ãäºæ ãããçºçããã®ã§ãããããpre-commitã§ã³ãããããåã®æ®µéã§ã¨ã©ã¼ã§å¼¾ãããã«ããã åæ mac OS 10.15.4 windows10 æºå git/hooksé ä¸ã«ãpre-commitããã¡ã¤ã«ãç¨æãã ã³ã¼ã git symbolic-ref HEAD --shortã§ç¾å¨ã®ãã©ã³ãåãåå¾ masterã¨æååæ¯è¼ããããã¨ã§ãèªåãä»masterãã©ã³ã以å¤ã®ãã©ã³ãã«ããã¨ãããã¨ã確èªãã¦ãã #!/bin/sh branch=`git symbolic-ref HEAD --short` if [ ${branch} = master ]; then cat <<\EOF ã¨ã©ã¼ï¼masterãã©ã³ãã«commitã¯ã§ãã¾ããã EOF exit 1 fi
{{#tags}}- {{label}}
{{/tags}}