#!/usr/bin/env bash # Point git at the versioned hooks in .githooks/. Run once per clone. set -euo pipefail cd "$(git rev-parse --show-toplevel)" chmod +x .githooks/* scripts/ci/gate.sh git config core.hooksPath .githooks echo "Hooks installed: pre-commit (fast gate), commit-msg (Conventional Commits), pre-push (full gate)."