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.

Undo · level 7.1Three kinds of reset

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

learngit
26 / 33
0 XP

Working directory

Staged1goes in the next commit
notes.mdA
Unchanged1
a.js
A addedM modifiedU untrackedD deleted
{ }select a file to edit
commit graph
↑ history · tab complete · ⌘Z undo

Three kinds of reset

+0 XP

--soft moves the branch only. --mixed also resets the index, so your work stays but is unstaged. --hard resets all three and is the only one that can lose an edit. Everything else is recoverable.

Next level →