Git Quest

Learn Git branching by typing real commands and watching the commit graph change until it matches the goal.

Level 1 of 12

Your first commit

A commit is a snapshot with a message. git commit -m "Add the timer" records one and moves the branch you are on up to it, and HEAD follows. The goal is one commit further along on main, carrying the goal’s message.

Your graphc1mainHEAD
  • c1 Initial commit
The goalc1c2mainHEAD
  • c1 Initial commit
  • c2 Add the timer ← c1

Commits are numbered c1, c2, c3 … instead of hashed, so you can point at one. The goal wants the same commits, joined and labelled the same way, and the same messages; a dashed commit is one nothing points at any more.

0 commands so far. Your graph has 1 commit on a branch; the goal has 2 commits on branches.

More in the yard