Skip to content

Glossary: Git Beyond the Basics

pre-commit

Also written: commit-msg, pre-push

Three hook names: pre-commit runs before a commit and can inspect what's staged, commit-msg runs after you write the message, and pre-push runs before a push.

Where the book teaches it

Related terms

hook--no-verify