Git Guardrails Claude Code

设置 Claude Code hooks,在危险的 git 命令(push、reset --hard、clean、branch -D 等)执行前拦截它们。当用户想要阻止破坏性 git 操作、添加 git 安全 hooks 或在 Claude Code 中阻止 git push/reset 时使用。 (Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.)

ninehills a6b9011 2 files · 4.1 KB Updated

File contents

ninehills/mattpocock-skills/tree/main/skills/misc/git-guardrails-claude-code commit a6b90119c0

Frequently asked questions

npx skillmds@latest add ninehills/git-guardrails-claude-code