Create git-hook and guard