Software Development

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.

Publisher / source
mattpocock/skills (found on skills.sh, an awesome list, the CSV list)
Upstream record
mattpocock/skills
Version
Version 3
Published
Publication review
Approved for publication
Content fingerprint
69b291d655626a01602b998a1836fcb93c058ede68dfafddfd71e87f17074764