Setup Git Guardrails Sets up a PreToolUse hook that intercepts and blocks dangerous git commands before Claude executes them. What Gets Blocked - (all variants including ) - - / - - / When blocked, Claude sees a message telling it that it does not have authority to access these commands. Steps 1. Ask scope Ask the user: install for this project only ( ) or all projects ( )? 2. Copy the hook script The bundled script is at: scripts/block-dangerous-git.sh Copy it to the target location based on scope: - Project : - Global : Make it executable with . 3. Add hook to settings Add to the appropriat…