Git Guardrails

Set up git guardrails — a Claude Code PreToolUse hook that intercepts and blocks dangerous git commands such as force-push and hard reset before they run. Use to install git safety hooks or when the user runs /git-guardrails.

Code-Shock Updated

File contents

Code-Shock/claude-skills/tree/main/git-guardrails commit 749b9b25fb

Frequently asked questions

npx skillmds@latest add code-shock/git-guardrails