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 Updated 276 repo stars
Skills

File contents

ninehills/mattpocock-skills commit a6b90119c0

Frequently asked questions

npx get-skill add ninehills/git-guardrails-claude-code