Install a Claude Code PreToolUse hook that blocks irreversible git operations before they execute: force pushes, hard resets, forced branch deletion, and working-tree discards. Use when a repository needs a tool-time safety net. Plain `git push` stays allowed.
Install a Claude Code PreToolUse hook that blocks irreversible git operations before they execute: force pushes, hard resets, forced branch deletion, and working-tree discards. Use when a repository needs a tool-time safety net. Plain `git push` stays allowed.