Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.9 KB

README.md

File metadata and controls

36 lines (28 loc) · 1.9 KB

Learning GitHub: Commit Rush

A 3D endless runner that teaches Git and GitHub while you play. Every move is a real Git command: grab changed files, run through git add to stage them, git commit to save them, branch, merge, resolve conflicts, push to GitHub and get a pull request reviewed and merged.

Play: https://ralpberry-labs.github.io/learning-github/

How it plays

  • ← → switch lanes · ↑ / Space jump · ↓ slide · P pause (swipe on phones)
  • Red file cards are changed files. Run through git add . (they turn green = staged), then git commit to save them.
  • Crash into a bug, a conflict bar or a block and you lose a heart and every uncommitted file. Commit early, commit often.
  • Quiz doors: the game slows down, a question appears, run through the door with the right answer for a speed boost. Missed questions come back in later runs.
  • A live terminal shows the real command and its output; a commit graph shows branches, merges, pushes and tags.
  • Collect stars for skins, earn XP and ranks, keep a daily streak, and fill the Command Codex (your cheat sheet).
  • N turns on narration (reads briefings, questions and answers aloud). M toggles sound.

Chapters

1 What is Git? · 2 Setup & init · 3 Staging area · 4 Commits & history · 5 Branches · 6 Merging & conflicts · 7 GitHub & remotes · 8 Pull requests · 9 Undo everything · 10 Pro moves · Endless mode. The syllabus follows the W3Schools Git tutorial.

Development

Plain HTML/CSS/JS with Three.js from a CDN; no build step.

python3 -m http.server 8742

Open http://localhost:8742/?mute&bot, then run __bot(4) in the console to auto-play chapter 5 (__bot('endless') for endless mode). ?unlock unlocks every chapter, ?ch=3 jumps straight into a chapter. Content (chapters, questions, commands) lives in js/content.js. Design notes are in DESIGN.md.

License

MIT