7 lines
239 B
Bash
Executable File
7 lines
239 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
|
git -C "$ROOT_DIR" config core.hooksPath .githooks
|
|
echo "已启用 .githooks(推送前执行 backend/frontend 本地检查;SKIP_CHECKS=1 可跳过)"
|