feat(system): 调整Git规范

This commit is contained in:
2026-03-27 16:18:21 +08:00
parent fdd65711e9
commit 1e47618406
10 changed files with 556 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/sh
set -eu
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname "$0")" && pwd)"
REPO_ROOT="$(CDPATH= cd -- "$SCRIPT_DIR/.." && pwd)"
git -C "$REPO_ROOT" config core.hooksPath "$REPO_ROOT/githooks"
printf '%s\n' "Git hooks installed."
printf '%s\n' "core.hooksPath=$REPO_ROOT/githooks"