Setup
Git is a command-line tool. After installing, tell it your name and email — every change you save is stamped with them.
Lessons
1
What Git Actually Solves
final.doc, final_v2.doc, final_FINAL_really.doc — everyone has done this. Git is…
→
2
The Core Loop: add & commit
Edit, stage, commit. You'll run these commands thousands of times. Understand th…
→
3
Branches
A branch is a parallel timeline for your code. Experiment freely on a branch — i…
→
4
Merge Conflicts
Two branches edit the same line, then merge. Git can't guess which version you w…
→
5
Remotes: push, pull & GitHub
So far everything lived on your machine. A remote is a copy of your repository o…
→
6
Undoing Things
The whole point of git is that mistakes are recoverable. Here's the undo toolbox…
→
7
Reading History Like a Detective
Who wrote this line? When did this bug appear? What changed last week? Git answe…
→
8
Git Cheatsheet
The commands you run daily, plus the rescue toolbox — one page.
→