Git Guardrails Claude Code

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.

mattpocock 6654f6b 3 files · 2.9 KB Updated 236k repo stars

File contents

mattpocock/skills/tree/main/skills/misc/git-guardrails-claude-code commit 6654f6b60c

Frequently asked questions

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