Git for Engineers — Level by Level
Every pipeline, every GitOps deployment and every infrastructure change starts with a Git commit. Learn how Git really stores your work, the daily workflow, branching and merging, collaborating through pull requests, choosing a branching strategy, undoing almost any mistake, and running repositories safely for infrastructure and GitOps.
What you'll be able to do
- Explain what a commit, a branch and a remote really are
- Work confidently every day: stage, commit, branch, merge, rebase and resolve conflicts
- Collaborate through pull requests with protected branches and reviews
- Pick a branching and release strategy that fits the team
- Recover from mistakes with restore, reset, revert, reflog and bisect
- Run repositories safely for infrastructure-as-code and GitOps
Before you start
Linux command line (Linux — Level by Level, Level 1).
How it works
Each lesson: plain-language idea → how it really works → hands-on. Each section ends with a cheat sheet & self-check.
Curriculum
Lessons marked “Read” are ready; the rest are on the way.
Level 1 — Foundations
- 01How Git worksSnapshots, commits, trees and refs: the model behind every commandRead →
- 02The everyday workflowStatus, add, commit, diff, log, .gitignore and good commit messagesRead →
- 03Branching and mergingBranches, fast-forward and merge commits, rebase, resolving conflictsRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 10 questions to check yourself.Open →
Level 2 — Working in a team
- 04Remotes and pull requestsClone, fetch, pull, push, forks, pull requests, protected branches and reviewsRead →
- 05Branching strategies and releasesTrunk-based, GitHub flow, GitFlow, release branches, tags and semantic versioningRead →
- 06Undo and recoveryRestore, reset, revert, stash, cherry-pick, reflog and bisectRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 9 questions to check yourself.Open →
Level 3 — Git for platforms
- 07Repositories for infrastructure and GitOpsMono vs poly repo, CODEOWNERS, pre-commit hooks, signed commits, keeping secrets outRead →
- 08Large repos and troubleshootingShallow and sparse clones, LFS, submodules vs subtrees, and fixing common errorsRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 6 questions to check yourself.Open →
Real-world scenarios
Work through each one: symptom → misleading signal → evidence → root cause → prevention.
Contain it, rotate it, then decide whether to rewrite history.
Get fixes into both without losing or duplicating changes.
Find the lost commits with reflog and protect the branch.
This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.