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.

5m read timeFrom dzone.com
Post cover image
Table of contents
How to Set Up Commit HooksThe Pre-Commit Hooks We Use at GitGuardianUsageConclusion

Sort: