Practice
Interactive scenarios
Real situations with a starting state and a goal. Run commands, get hints, and see when you've succeeded.
Scenario 01Beginner
Your first commit
Initialize a repository, stage a file, and create your first commit.
StartScenario 02Beginner
Feature branch
Create a feature branch, commit on it, and merge it back into main.
StartScenario 03Intermediate
Accidental commit on main
Move a commit that was made on main onto a feature branch, keeping main clean.
StartScenario 04Intermediate
Resolve a merge conflict
Merge a branch, resolve the conflict, and complete the merge.
StartScenario 05Advanced
Rebase a feature branch
Rebase your private feature branch onto the latest main for a linear history.
StartScenario 06Intermediate
Squash a noisy pull request
Combine several small feature commits into one clean commit on main.
StartScenario 07Beginner
Undo a local change
Discard an unwanted edit using restore.
StartScenario 08Intermediate
Remote collaboration
Push your branch and set up remote tracking.
Start