Git Hook - CI/CD用語集の定義
git hookは、Gitがそのworkflowの特定の時点で自動的に実行するスクリプトで、pre-commit、commit-msg、pre-push、post-mergeなどがあります。hookは.git/hooks/に置かれ、lintやフォーマット、不正なコミットのブロックに使われます。
git hookは、Gitがそのworkflowの特定の時点で自動的に実行するスクリプトで、pre-commit、commit-msg、pre-push、post-mergeなどがあります。hookは.git/hooks/に置かれ、lintやフォーマット、不正なコミットのブロックに使われます。
git hookは、Gitがそのworkflowの特定の時点で自動的に実行するスクリプトで、pre-commit、commit-msg、pre-push、post-mergeなどがあります。hookは.git/hooks/に置かれ、lintやフォーマット、不正なコミットのブロックに使われます。
CIでの利用
ローカルのhookはデフォルトではCIや他のcloneでは実行されません。チームはpre-commitやHuskyのようなツールでそれらを共有し、同じcheckを必須のjobとして実行することで、何も回避されないようにします。
関連ガイド
Protected Branch - CI/CD Glossary DefinitionProtected Branch: A protected branch is a branch with rules that block or gate changes, such as requiring pul…
Commit Signing - CI/CD Glossary DefinitionCommit Signing: Commit signing attaches a cryptographic signature to a commit (`git commit -S`, GPG or SSH) s…
Rebase - CI/CD Glossary DefinitionRebase: Rebase replays your commits on top of another base commit, rewriting their SHAs to produce a linear h…