Use when working in a git repo and the user wants to prevent destructive git operations — says "add git safety hooks", "block git push/reset", "set up git guardrails", or asks to protect against accidental pushes/force-resets/branch deletes. Installs a PreToolUse hook that blocks dangerous git comma
Use when working in a git repo and the user wants to prevent destructive git operations — says "add git safety hooks", "block git push/reset", "set up git guardrails", or asks to protect against accidental pushes/force-resets/branch deletes. Installs a PreToolUse hook that blocks dangerous git commands (push, reset --hard, clean -f, branch -D, checkout ., restore .) before they execute.