2015年 03月 27日

git で今すぐ成果を倍にできる方法

#!/bin/sh

if [ "x$COMMMMMMIT" = "x" ]; then
	COMMMMMMIT=1 git commit --allow-empty -m "仕事したぞ!!!"
fi

このファイルを .git/hooks/post-commit として保存します。