Git
The backbone of everything else. Learn in layers — don’t jump to worktrees before you’re calm with branch + push.
Starterinit, clone, status, first commit, create branch, remoteEverydaypull, push, fetch, log, switch, stash light, PR flowConflictsmerge/rebase conflicts, abort, small resolutionsForce & historyamend, rebase -i, force-with-lease, reflog recoveryStashstash, pop, apply, named stashes, include untrackedWorktreesparallel branches, agent worktrees, cleanup
Mental model
text
working tree → stage (index) → commit → remote branch
↑ │
└──────────── pull / fetch + merge/rebase ─────┘Companion tools
Safety rules (tattoo these)
- Prefer
git push --force-with-leaseover--force - Never force-push
main/master/ shared release branches reflogis your undo for almost everything local- On WSL: keep repos under
~/, not/mnt/c/