Git Guardrails Claude Code

by mattpocockc55ee46073edNo licenseListed Oct 8, 2026Updated Oct 8, 2026

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.

Includes scriptsSecurityAI & Agents

Only the file list is public. File contents are available once the skill is installed in a workspace.

PathSizeType
agents/openai.yaml112 Bapplication/yaml
scripts/block-dangerous-git.sh507 Btext/plain
SKILL.md2.3 KBtext/markdown

Source and attribution

Source:mattpocock/skillsinskills/misc/git-guardrails-claude-codeat commitc55ee46

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal