Idea · Sep 24, 2026
Git Broken-State Gym
An in-browser Git practice gym where instructors author broken repositories (detached HEAD, merge conflict, committed secret, lost commit) and students repair them with real Git commands, auto-checked against a goal commit graph.
What it would do
Students rarely practice Git recovery until something goes wrong on a real team project. This tool runs isomorphic-git in the browser behind an xterm.js terminal, so each student gets a disposable repository with no install. Instructors write short YAML scenarios: a setup script that produces a broken state, a plain-language story ('you committed your API key and pushed'), and a goal predicate over the resulting commit graph, refs, and working tree. A live side-by-side commit graph shows how each command changes the DAG, and the checker explains which goal predicates are still unmet without revealing the command sequence. An instructor dashboard shows which scenarios students solve, how many commands they take, and which dangerous commands (reset --hard, force push) they reach for first.
Key features
- Real Git semantics in the browser via isomorphic-git and a virtual filesystem, no server-side containers
- YAML scenario format: setup script, story, goal predicates over refs, DAG shape, and working tree
- Live commit-graph visualization that animates after every command
- Solution-free goal checker that names unmet conditions rather than the fix
- Instructor dashboard of command traces, attempt counts, and risky-command frequency, exportable as CSV