learngit

Levels need a desktop

A level is you typing real Git commands and editing files while the commit graph moves under you, all on one screen. That needs a keyboard and room for three columns.

Boss level · level 8.1Wrong branch

Open it on a laptop and you will be rebasing within the hour.

learngit
31 / 33
0 XP

Working directory

working tree cleannothing differs from the last commit
Unchanged2
app.js
c.js
A addedM modifiedU untrackedD deleted
{ }select a file to edit
origin, the server
You haven’t fetched.Nothing on your machine can tell you what is up here. Run git fetch.
your machine
↑ history · tab complete · ⌘Z undo

Wrong branch

+0 XP

Branching before resetting is the whole trick. Once feature pointed at the work, moving main was harmless. Even if you had forgotten, the reflog would still have had it.

Next level →