chore: 添加 docs/superpowers 提交防护和 git 强制操作权限限制

This commit is contained in:
2026-06-10 09:35:10 +08:00
parent 03fabd8ab9
commit 8d6f9dbad6
2 changed files with 18 additions and 1 deletions

View File

@@ -1 +1,5 @@
if git diff --cached --name-only | grep -q "^docs/superpowers/"; then
echo "错误: 禁止提交 docs/superpowers/ 目录下的文件" >&2
exit 1
fi
bun lint-staged