Course index

Learning Git

Two goals: never lose solo work, and collaborate in a shared repo without fear. Every lesson traces back to one of them.

Lessons

Lesson 01 · foundation

The Three Trees

Where changes actually live — working directory, staging area, repository — and why git status stops being noise.

working dir · staging area · index · tracked · untracked · the two diffs
Lesson 02 · foundation

What a Commit Really Is

Snapshot plus a parent pointer. A branch is just a movable label. The graph model that makes every undo command predictable.

commit object · snapshot vs diff · parent · branch · HEAD · SHA
Lesson 03 · solo safety

The Undo Playbook

Every "I made a mistake" fix, sorted by which tree or pointer it touches. The lesson that kills the panic.

restore · --amend · reset soft/mixed/hard · revert · reflog
Lesson 04 · team collaboration

Branching & Merging

The two — and only two — kinds of merge: fast-forward when main hasn't moved, a three-way merge commit when it has. Predict which you'll get before you run it.

merge · fast-forward · three-way · merge commit · merge base · diverge
Lesson 05 · team collaboration

Merge Conflicts, Unscared

A conflict is Git refusing to guess when both sides touch the same lines. Read the markers, edit to the result, add + commit — or --abort to bail.

conflict · conflict markers · ours vs theirs · add to resolve · merge --abort
Lesson 06 · team collaboration · capstone

Remotes & Pull Requests

A remote is just more pointers, living on a server. origin/main is your cached bookmark of where the server was. Push a branch, open a clean PR, read the shared graph cold.

remote · origin · origin/main · fetch vs pull · push -u · pull request · ahead/behind

Reference

Reference · living

Git Glossary

Canonical definitions used across all lessons, plus a CLI ↔ VS Code mapping table. Print this one.

Workspace

FileWhat it holds
MISSION.mdWhy you're learning Git. Grounds every teaching decision.
RESOURCES.mdTrusted sources — Pro Git, Learn Git Branching, communities.
NOTES.mdYour preferences and the teaching notes behind them.
learning-records/What's been established — drives what gets taught next.