Gitastic

Sandbox

A consequence-free git playground. Break things on purpose.

Four commits on main. Good for log, show, diff, reset and revert.

220addd Initial commit click to insert the hash into the terminal220adddInitial commit2722c79 Add cart click to insert the hash into the terminal2722c79Add cartcb89a36 Add checkout click to insert the hash into the terminalcb89a36Add checkoute3c10db Style cart click to insert the hash into the terminale3c10dbStyle cartHEAD = where you are. It points at the current branch.HEAD →Branch "main" — a movable pointer (current branch: moves when you commit)main
Working directoryyour folder / editor
README.md
cart.js
checkout.js
git add →← git restore
Staging areathe next snapshot (index)
README.md
cart.js
checkout.js
git commit →← restore --staged
RepositoryHEAD → e3c10db
README.md
cart.js
checkout.js
terminal · simulated, no real repository is touched
Sandbox: anything goes. `help` lists commands · `edit <file> "text"` changes files · `teammate push -m "msg"` simulates a coworker.
~/project (main) $