Git
Distributed version control without the fear.
Git is taught here in 13 lessons, running from Git basics through to Repository health, LFS and recovery. Each lesson takes one topic, shows the working code, and links onward to the next, so the course can be read straight through in order.
| Track | DevOps & Tooling |
| Lessons | 13 |
| Level | Beginner to intermediate |
| Reading time | about 3 hours |
| Prerequisites | None beyond being able to open a text editor |
Lessons
- Git basicsThe three areas every file lives in, the daily commit loop, and writing history worth reading later.
- Branching and mergingCreating branches, switching safely, merging versus rebasing, and keeping a messy history out of main.
- Remotes and collaborationCloning, pushing, fetching versus pulling, and understanding what origin/main actually points at.
- Undoing mistakesrestore, reset and revert — and how git reflog rescues commits you thought were gone forever.
- Conflicts, stash and cherry-pickReading conflict markers, resolving without losing work, shelving changes mid-task, and copying single commits.
- Installing Git and configuring your environmentInstall on any platform, set the identity and configuration that actually matter, control line endings, and put shared rules in the repository instead of in your head.
- Reading history: log, diff, blame and bisectFormat your log instead of scrolling it, search history with the pickaxe, find which commit last touched a line, and let bisect run find the breaking change.
- Clean history: interactive rebase, squash and amendReorder, squash, split and reword commits before anyone else sees them, use fixup and autosquash, and know the safety net that makes rewriting recoverable.
- Tags, releases and semantic versioningAnnotated versus lightweight tags, signing and pushing them, naming a build with git describe, and turning tags into releases and changelogs.
- Hooks, aliases and automationClient and server hooks, pre-commit and commit-msg in practice, formatters and linters that run on every commit, and scripting Git with plumbing commands.
- Forks, pull requests and review workflowsFork versus branch models, syncing with upstream, protected branches and required checks, review etiquette, and rewriting a branch that is under review.
- Worktrees, submodules and large repositoriesSeveral working trees from one repository, submodules and subtrees for shared code, sparse checkout and partial clones, and what actually makes a clone slow.
- Repository health, LFS and recoveryKeep a repository fast with fsck, gc and repack, move large assets into Git LFS, purge a file from history, and recover from a damaged object store.
More in DevOps & Tooling
Linux Docker Kubernetes Nginx CI / CD Bash Scripting Ansible
FAQ
How long does the Git course take?
It has 13 lessons, about 3 hours of reading. Expect roughly twice that if you type out and run every example.
Do I need prior experience for Git?
No. This is the first course in DevOps & Tooling, so it starts from the beginning and assumes no background.
What should I read after Git?
Continue with Linux (14 lessons), the next course in DevOps & Tooling.
Last refreshed 2026-09-18.