Learn how to never commit $%@ to Git
summary
Shows a concrete workflow that blocks bad commits by running checks locally: a centralized pre-commit hooks repo plus an install script runs linters and formatters (demo uses flake8 and black), and a scanner (Spectral) to catch hardcoded credentials. Commits fail until tools fix or auto-reformat files; demo reformats and prevents the commit. Repository requires installing binaries but echoes install commands. Plan targets about 300 developers and is already usable.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 2:50Bad code in Git
- 8:11Git pre-commit hooks setup
- 13:21pre-commit framework
- 16:09flake8 hooks config
- 21:39Running pre-commit hooks
- 25:16Security tools in pre-commit
- 28:35Shift left with pre-commit
- 30:01Summary & Q&A
related talks
16mHow To Make A "Perfect" Git Commit
43mPut Git to work: increase the quality of your project
05mBetter Living through Git Hooks
25mAutomatic Checks for the People
35mTerrible Ideas in Git
22mUsing Git in an (un)orthodox way in your team
42mUsing Git like a pro
01h 39mMastering git collaboration -A DevOps necessity
