Git hooks are executable scripts that Git runs before or after certain events like commits, pushes, merges, and more.
They automate tasks like linting code before committing, enforcing commit message discipline, running tests before push, and syncing after merging.
Other Git hooks include applypatch-msg, pre-applypatch, post-applypatch, prepare-commit-msg, post-commit, pre-rebase, pre-merge-commit, pre-auto-gc, and post-rewrite.
To share hooks across teams, options like Husky and Lefthook can be used.