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.
Pinned to revision a9a88377850e, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/git-guardrails-claude-code/SKILL.md
- skills/git-guardrails-claude-code/agents/openai.yaml
- skills/git-guardrails-claude-code/scripts/block-dangerous-git.sh
Every link opens the file at its source, pinned to the revision this page describes.