git, block by block: animated, isometric walkthroughs of what git commands actually do, plus a live sandbox where you type the commands yourself.
Live: git.redstone.university · blocks borrowed from Redstone University.
Like RxMarbles was for Rx: no prose walls, no man pages, just the mental model, animated. One rule does most of the teaching: commits are blocks that never move. Refs are tags that do. A change in flight is a redstone torch. Because the geometry forbids motion, the animations can't lie: rebase has to look like copying, reset has to look like a pointer abandoning blocks, and merge has to look like one new block with two parent wires.
| group | pages |
|---|---|
| start here | basics · the sandbox |
| rewriting | rebase · interactive-rebase · rebase-onto · amend · cherry-pick |
| combining | merge · fast-forward · squash-merge |
| undoing | reset · revert |
| syncing | fetch-pull |
| exploring | detached-head |
Every page plays itself on a loop until you take the controls, and every step's commands type themselves into the terminal below the figure.
git.redstone.university/playground is an open-ended repo with a real terminal. Every command animates the blocks:
commit(and--amend),branch/-d/-D,switch/-c/--detach,checkoutmerge(--no-ff,--squash),rebase(-iauto-squashes,--onto)cherry-pick,revert,reset(--soft/--mixed/--hard)log,status, refs likeHEAD~2,main^, sha prefixes- aliases:
g,c,co,sw,br,l,s,cp undo,help, andshare, which copies a link that replays your whole session, typed out character by character, on a loop until whoever opened it types a command and takes over
It's a teaching model, not real git: there are no files, so merges never conflict, and there's no network (the fetch-pull animation covers that story).
URLs are the product:
?step=Ndeep-links a step; the address bar tracks where you are?embedstrips the chrome for iframes;&loopmakes it play itself?noplayturns autoplay off, so?embed&step=5&noplayis a frozen single frame?label=<target>:<text>pins an extra caption under a block. The target can be a branch or tag name (the caption follows the ref as it moves), a commit code likeF2, or a sha prefix. Repeatable:&label=feature:you are here&label=main:their work
<iframe src="https://git.redstone.university/rebase?embed&step=7"
width="100%" height="460"></iframe>- sandbox
sharelinks (/playground?s=…) encode the command history and replay deterministically: same shas, same layout, every time
No frameworks, no libraries, no build step. Two classic <script> tags per
page; the only external requests are two Google Fonts. It runs from file://.
gitblocks.js/gitblocks.css- the shared engine: a hand-rolled 2:1 isometric SVG renderer (P(gx,gy,z) = [(gx−gy)·36, (gx+gy)·18 − z]), step tweens onrequestAnimationFrame, ref tags, the terminal, embed modevizzes/<name>.js- one data file per animation: commits, steps, copyplayground.js- the sandbox: an in-browser git model (plain objects), deterministic so?s=replays are exact<name>.html- thin pages: fonts + engine + data
The visual language is borrowed from the redstone-university render pipeline: paper/ink, pastel block families, schematic redstone-dust wires. The terminal wears the Human++ palette on warm charcoal.
Open any page directly, or:
npx serve
Pushing main deploys production; branches get preview URLs.
