Git Guardrails Claude Code

Set up Claude Code hooks to block dangerous git commands (force-push, direct push to protected branches, 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.

wakqasahmed 6281f3d 2 files · 16.5 KB Updated

File contents

wakqasahmed/ai-engineering-workflow-skills/tree/main/skills/engineering/git-guardrails-claude-code commit 6281f3d9b2

Frequently asked questions

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