Skip to content

Tutorial Overview

Box Runner is a beginner-friendly tutorial that teaches Git and GitHub through small, visible changes to a webpage. You will build the start screen of an imaginary game called Box Runner using only HTML and CSS, and you will save every step with Git.

By the end you'll be fluent in the everyday Git workflow:

edit → view → add → commit → (branch / merge / push)

The Mental Model

This tutorial uses one metaphor throughout, and it's worth memorizing up front:

Real thingIn Git
Your project folderthe repository
A save point in a gamea commit
A separate route you're experimenting ona branch
Bringing that experiment homea merge
The cloud save serverGitHub (the remote)
Uploading your saves to the cloudgit push

Every stage in the tutorial teaches one of these ideas — and only one.

What You Need

  • A computer with a terminal (macOS Terminal, Linux shell, or Windows PowerShell/Git Bash)
  • A code editor (VS Code is recommended)
  • Git installed — check with git --version
  • A free GitHub account (you won't need it until Stage 7)
  • A web browser

You do not need Node, Python, Docker, a framework, a server, or any package manager.

The 10 Stages

#StageConceptVisible Change
0Create the Game Screenproject setupThe webpage exists in your browser for the first time
1First Save Pointgit init, add, commitSame page, now tracked by Git
2Add Stylingcommit new + edited filesPage becomes centered, gray, styled
3Add the Scoreboardgit logScore and Lives appear below the button
4Try a Branchgit checkout -b(No visible change — that's the lesson)
5Experiment on the Branchcommit on a non-main branchPage goes dark with teal accents
6Merge the Branchgit mergeDark theme arrives on main
7Connect to GitHubgit remote add(No visible change — remote is wired up)
8Push to GitHubgit push -u origin mainProject appears on github.com
9Edit, Commit, Push Againthe everyday loopHigh-score line on the page and on GitHub

Each stage lives on its own branch and has its own tag, so you can jump to any point with:

bash
git checkout stage-3-scoreboard

Stage pages will be published to the docs site as each stage is built with @tutorial-turbo.

How to Work Through the Tutorial

  1. Read the stage page in the docs.
  2. Do the step in your own local box-runner folder (don't just read — actually type it).
  3. Open index.html in your browser to see the change.
  4. Run the Git commands the stage asks for.
  5. Try the exercises at the bottom of the stage page.
  6. Move to the next stage.

The tutorial is designed so every single stage leaves you with a working webpage. If something looks broken, you're almost certainly looking at an unsaved edit — compare with the stage's own branch.

A Note on Mistakes

Git feels scary because it looks like mistakes are permanent. They usually aren't. Every exercise in this tutorial is reversible, and every commit you make is itself a safety net. Experiment freely.