12 parts
Master Git the way you actually use it: commits, branches, merging, undoing mistakes, remotes, and pull requests on GitHub — with clear diagrams throughout.
What Git and version control are, the problems they solve, and the mental model of commits as save points, the safety net under every project you build.
8 min read
Install Git, set your name and email, run git init, and read git status. The very first steps to put a project under version control.
7 min read
Master the Git staging area: git add, what staging is for, and writing good commits with git commit, the core save-your-work loop, with diagrams.
Read your project's history in Git: git log and its useful flags, git diff for unstaged and staged changes, git show, and what HEAD really means.
Branch in Git with confidence: what a branch really is (a movable pointer), git branch and git switch, and why you branch for every feature, with gitGraphs.
Merge branches in Git: fast-forward vs merge commits, how to read and resolve a merge conflict, and finishing the merge, with gitGraph diagrams.
Fix mistakes in Git: discard edits with restore, move HEAD with reset (soft/mixed/hard), undo a commit with revert, and amend. Which to use, when.
Connect Git to GitHub: remotes and origin, clone an existing repo, push your commits, and pull others' work, plus how local and remote history stay in sync.
9 min read
How teams ship with GitHub: branches, opening a pull request, code review, and merging, plus forks for open source. The everyday collaboration loop.
Understand git rebase versus merge: how rebase rewrites history for a clean line, when to prefer each, and the golden rule of never rebasing shared commits.
Keep your repo clean: how .gitignore works and its patterns, what you should never commit (secrets, node_modules), and how to write commits your team will thank you for.
Tie it together: clone, branch, commit, push, open a pull request, handle a conflict, and merge. A realistic end-to-end Git and GitHub workflow, step by step.
11 min read