post commit git hook for a commit to specific directory code example Example: git hooks chmod +x prepare-commit-msg