Git Guardrails Claude Code

Install a Claude-Code PreToolUse hook that blocks destructive git commands (push variants including force-push, hard reset, force clean, branch -D, checkout/restore overwrites) before Bash runs them. Use when the user wants git safety rails, force-push prevention, or repository-wipe protection.

majiayu000 Updated 567 repo stars

File contents

majiayu000/claude-skill-registry-data/tree/main/security/git-guardrails-claude-code commit a757e6f73d

Frequently asked questions

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