Skip to content

Glossary: Git Beyond the Basics

hook

Also written: Git hook, hooks

A script Git runs at a set moment, such as before a commit. If it exits with a non-zero status, Git stops.

Where the book teaches it

Related terms

pre-commitshebangcore.hooksPath--no-verify