DevOps · Series 2 of 10
Source Control: Git as the Source of Truth
Branches, pull requests, what must never be committed, and keeping a repository that stays easy to work in.
Everything downstream (tests, builds, deploys, rollbacks) starts from a commit. If source control is sloppy, every later step inherits the mess.
Chapters
- Chapter 13 min Branches and Pull Requests Main is what production runs, so it only changes through a pull request with green tests. Here is the workflow and why each rule exists.
- Chapter 23 min What Never Goes Into Git Secrets, local settings, generated files and personal backups do not belong in a repository. How .gitignore, .dockerignore and habits keep them out.
- Chapter 33 min Keeping a Repository Tidy A layout that tests enforce, one-off scripts in a folder Git ignores, hooks that catch mistakes, and docs that cannot go stale.