Stop Claude Code from skipping git hooks with --no-verify
This story is from 2026-11-30. It is preserved in the archive; the latest stories are on the live feed.
A PreToolUse hook can already block git push --force and git reset --hard . That still leaves a hole: git commit --no-verify (or -n ) skips the hook that would have caught a secret, a red test, or a broken lint. A small PreToolUse hook can refuse that flag so the repo hooks still run. The hook shou…
Read the full story at DEV Community — AI ↗
Timeline · 2 reports
- 2026-11-30 05:46 · DEV Community — AI
Stop Claude Code from running rm -rf while you sleep: a 40-line PreToolUse hook - 2026-11-30 01:02 · DEV Community — AI
Stop Claude Code from skipping git hooks with --no-verify