GitHub hooks in a nutshell
Git hooks live in .git/hooks/. They’re scripts that run automatically on events like commit, push, or pre-push.
Examples: pre-commit (run tests before commit), commit-msg (enforce message format), pre-push (run lint or tests before pushing).
They’re local only—not stored in the repo. To share with the team, use a tool like Husky or put scripts in a /scripts folder and install them via your setup docs or package.json postinstall.