- What's the mental model?
- Three zones: working directory (what you see), staging (what you've git added), and history (what you've committed). Every command moves content between zones.
- First workflow?
- git clone → make changes → git add → git commit → git push. Plus git pull to get others' changes. Five commands cover the daily loop.
- How do I undo?
- git restore (uncommitted changes), git reset (uncommit but keep changes), git revert (new commit that inverts another). Each has different safety — the page has a decision tree.
- Branch / merge / rebase?
- Branch for parallel work, merge to combine (keeps history), rebase to replay (cleans history). Merge is safer for shared branches; rebase for your own.