pcottle/learnGitBranching ? reverse-engineered prompt

Reverse engineered prompt

Build me an interactive web app that teaches Git by showing what happens visually when someone types commands. I want it to feel like a little game for learning Git, with a command box, a commit tree diagram that updates instantly, and a starter sandbox where people can try things like commit, branch, checkout, merge, rebase, clone, undo, and reset without breaking anything.

Please include guided lessons and challenges, with a way to see available levels and track which ones are completed. Add a simple score idea where using fewer commands is better. It should also support sharing a lesson or sandbox state through a link that can run commands on load.

I’d like a basic level builder too, where someone can create a custom challenge, export it as JSON, and import a shared one later. Keep it all running in the browser with no backend needed. Make it clean, simple, and beginner friendly. Look up current docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab