Git Hook - CI/CD Glossary Definition
A Git hook is a script Git runs automatically at events like commit, push, or merge.
A Git hook is a script Git runs automatically at points in its workflow, such as before a commit, before a push, or after a merge. Hooks live in .git/hooks and automate local checks.
Client vs server hooks
Client-side hooks (pre-commit, pre-push) run on the developer machine and are not shared automatically; server-side hooks (pre-receive) run on the remote and can enforce policy centrally.
Related guides
Pre-Commit Hook - CI/CD Glossary DefinitionPre-Commit Hook: A pre-commit hook is a script Git runs before a commit is recorded. It can lint, format, or…
Formatting - CI/CD Glossary DefinitionFormatting: Formatting is the automated application of a consistent code style (indentation, spacing, line br…
Shift Left - CI/CD Glossary DefinitionShift Left: Shift left is moving testing, security, and quality checks earlier in the delivery process, so de…