Developer Tooling

Git Hook

/ɡɪt hʊk/

Definition

A script that runs automatically at specific Git events (pre-commit, pre-push, commit-msg).

Example in context

"The pre-commit hook runs ESLint and Prettier — you can't commit code that fails linting."

Practice this term

Master Git Hook in context by working through exercises in the Developer Tooling module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.