Git: A secret slipped past a client hook that a developer bypassed wit

Опубликовано: 22 Июль 2026
на канале: TheCodeForge
3
0

A secret slipped past a client hook that a developer bypassed with `--no-verify`. Root cause: Client-side hooks can be skipped with `--no-verify`. The fix: Enforce with server-side (pre-receive) hooks, not just local.

A production war story from the TheCodeForge Git series — the incident, why it happened, and the exact fix.

⏳ Timestamps:
0:00 - Cold open: CI failures jumped from 2/week to 12/week
0:14 - Intro
0:20 - What Are Git Hooks?
0:41 - Hook Types Overview
0:54 - Where Hooks Live
1:20 - Client-Side Hooks
1:43 - Commit-msg Hook
2:14 - Server-Side Hooks
2:47 - Client vs Server
2:58 - CI failures jumped from 2/week to 12/week
3:26 - Slow pre-commit hook bypassed
3:39 - The Fix
3:57 - ⚠ Gotcha: Running full test suite in pre-commit
4:09 - Version Caveat: core.hooksPath Behavior
4:41 - Production Caveat: Hook Performance Monitoring
4:58 - Debugging Guide
5:10 - Interview Questions
5:25 - FAQ
5:41 - Key Takeaways
5:55 - Next up
6:10 - Wrap-up

👉 Full article + code: https://thecodeforge.io/devops/git-ho...
⏭ Next up: Git Clone: Clone a Repository Step by Step

#git #devops #versioncontrol