Simulators category icon

Git History Playground

InteractiveBeginner

A faithful in-memory Git model with a live commit graph: run git init, add, commit, branch, switch, merge, reset and revert — and watch the DAG redraw itself. Classic ASCII log --graph output, six guided missions, and deep-links from every Git course practice block.

Repository state

Branches

— none yet —

Working directory

— empty —

Command surface

shell

  • touch <file>create an empty file
  • echo "text" > filewrite a file (>> appends)
  • lslist working files

snapshots

  • git initstart the repository
  • git statusstaged / modified / untracked
  • git add <file|·.>stage current content
  • git commit -m "msg"snapshot the index
  • git diffworking vs staging

pointers

  • git branch [name]list / create a pointer
  • git switch -c <name>create + move HEAD
  • git merge <name>ff or merge commit
  • git log --graph --oneline --allASCII topology
  • git graphshortcut for the above

undo

  • git restore <file>discard working edits ✗
  • git restore --staged <f>unstage, keep edits
  • git reset --soft HEAD~1move pointer, keep index
  • git reset --hard HEAD~1move pointer, wipe tree ✗
  • git revert HEADnew inverse commit

No remotes, no rebase, no stash — a strict teaching subset. Same-file changes on both branches trigger a CONFLICT on merge (by design).

Live commit graph

0 commits · 0 branches

Not a repository yet

Run git init in the terminal — every snapshot you commit will draw itself here.

Terminal

Command Palette

Search for a command to run...

    Git History Playground — DevPath