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.

lichao689 b389d7b 3 files · 2.9 KB Updated

File contents

lichao689/agent-engineering/tree/main/skills/external/mattpocock/skills/misc/git-guardrails-claude-code commit b389d7b33e

Frequently asked questions

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