#!/usr/bin/env bash set -euo pipefail repo_root="$(git rev-parse --show-toplevel)" git config core.hooksPath "$repo_root/.githooks" printf '%s\n' "Git 密钥保护已启用:$repo_root/.githooks"