2013-10-17から1日間の記事一覧
% cat .git/hooks/commit-msg #!/bin/bash BRANCH=$(git symbolic-ref HEAD) if [ "$BRANCH" == "refs/heads/master" ]; then echo -e "\033[31mcannot commit on master branch.\033[0m" echo -e "\033[31mplease commit on topic branch.\033[0m" exit 1 f…