Git Hook - CI/CD用語集の定義
Git hook は commit、push、merge などのイベントで Git が自動的に実行するスクリプトです。
Git hook とは、commit の前、push の前、merge の後など、workflow の特定のタイミングで Git が自動的に実行するスクリプトです。hook は .git/hooks に置かれ、ローカルのチェックを自動化します。
client hook と server hook
client 側の hook(pre-commit、pre-push)は開発者のマシンで実行され、自動的には共有されません。server 側の hook(pre-receive)はリモートで実行され、ポリシーを中央で強制できます。
関連ガイド
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…