Git 후크가 존재할 때까지 (10년 동안 Git을 사용한 후)

작성자

카테고리:

← 피드로
DEV Community · Brad Simon · 2026-07-10 개발(SW)
Cover image for TIL Git Hooks Exist (After a Decade of Using Git)

Brad Simon

Wrote a small tool called Diff Sniffer — flags any commit that’s AI-authored, touches a path you’ve marked risky, and never got a human review. All three conditions or it says nothing. No AI in the tool itself, just trailers and path globs.

The part worth sharing here isn’t the tool, though — it’s that building the local-hook mode is what taught me git hooks exist at all. Post-commit, pre-push, whatever — you drop a script in .git/hooks/ and git just runs it. No config, no plugin API. A decade of daily git use and I’d never looked.

If anyone’s further down this road than I am — better hook patterns, gotchas with pre-push vs post-commit for something like this — I’d take the pointers.

Full story + the actual tool: Coder B Dev Blog – I’ve use git … / github.com/Coderb-dev/diffsniffer

원문에서 계속 ↗

코멘트

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다