HomeToolsGit Playground interactive deck
Modules
01 · Learn
The Workshop

Git, hands-on.

Getting Started
Foundations
Reference
Practice
←→navigate modules/focus search (commands)
01·Getting Started

Zero-to-Hero · Curriculum

Guided lessons. Each step types itself into the live terminal.

Curriculum · 21 lessons

From first commit to clean rebase.

0 / 21
Foundations0/4
Branching & merging0/3
Collaboration0/3
History surgery0/5
Recovery0/3
Advanced0/3
Track 01 · beginner

What git really is

Build the model before typing commands.

Mental model

Three things to hold in your head:

• A commit is a snapshot, named by its SHA.

• A branch is a sticky-note pointing at a commit.

• HEAD is the sticky-note that says "you are here".

 

That's it. Every command moves these three.

Steps · 3
  1. 01
    See what this playground knows.
    $help
  2. 02
    Make a repo. The prompt picks up `(main)`.
    $git init
  3. 03
    Confirm. Empty repo, no commits yet.
    $git status
Takeaway

Snapshot. Pointer. HEAD. The whole model.

3 steps
LIVE_TERMINAL·zsh · git playground
⌁playground · git + gh shellsimulatorv2.45 / gh 2.55
  • new hereopen the Learn tab for a guided path
  • gittype help or git --help · 50+ commands & flags
  • ghgh --help for the full GitHub CLI · pr, issue, repo, run, status, search, api…
  • safein-memory · zero side-effects · nothing here touches your machine
user@ubuntu:~/repo (main)$
Commit graph
on mainworking tree clean
// no commits yet
run git commit to populate