GitGuardian's Sofien describes how pre-commit hooks are used to save time and secure commits company-wide. Hooks are a way to fire off custom scripts when certain important actions occur. The first set of hooks checks the syntax of JSON and YAML files, while the check-added-large- Files ensure that no one commits a huge file by mistake. Pre-commit Hooks and CI jobs are complementary.
Table of contents
How to Set Up Commit HooksThe Pre-Commit Hooks We Use at GitGuardianUsageConclusionSort: