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.

Remotes · level 6.5The rejected push

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

learngit
25 / 33
0 XP

Working directory

working tree cleannothing differs from the last commit
Unchanged3
README.md
app.js
search.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

The rejected push

+0 XP

--force would have worked, and would have deleted a commit nobody could recover. --force-with-lease is the version with a guard rail: it only overwrites the exact commit you last fetched, so anything newer stops it dead.

Start Undo →