Skip to content
foundaday
Site of the day

Learn Git Branching

An interactive Git trainer in your browser: type commands and watch the commit tree change. Levels run from your first commit to rebase and remotes.

Learn Git Branching

What it is

Learn Git Branching is a free Git trainer that runs entirely in your browser. On one side there's a terminal; on the other, a commit tree. Type git commit, git branch, git merge or git rebase and the tree redraws in front of you. The things that happen invisibly in a real terminal become something you can see.

It's built around levels. The Main tab holds the "Introduction Sequence" (commits, branches, merge, rebase), "Ramping Up" (moving around history, HEAD, relative refs, reset and revert), "Moving and Staging Work" (cherry-pick, interactive rebase), "A Mixed Bag" and "Advanced Topics" for the brave. The Remote tab adds "Push & Pull" and "To Origin And Beyond": clone, fetch, pull, push and remote-tracking branches, all simulated with no real server.

Why we picked it

Git is usually taught with cheat sheets, which is why so many people quietly fear rebase for years. Here the cure is visibility: every command shows its effect, undo reverses a mistake, and reset restarts a level. Each level gives you a target tree to reach and counts your commands, so you can try to match the reference solution — the project calls this "git golf".

There's also a sandbox where you can mess around freely and even fake a remote with git fakeCreateRemote. You can design your own level with build level and share it. The project is open source under the MIT licence, created by Peter Cottle and still actively maintained by contributors — a European Portuguese translation was merged in October 2026. The interface is available in many languages.

The Remote tab deserves a special mention. Push and pull are usually explained in prose, leaving people unsure where origin/main comes from or why Git refuses a push. Here you see the local and remote trees side by side, and levels simulate teammates who pushed before you did. One more handy detail: add a command parameter to the URL and those commands run as the page loads.

Where to start

  • Open the site and click through the short intro that explains the screen.
  • Start with the "Introduction Sequence" even if you've used Git for years — its rebase explanation is clearer than most articles.
  • Stuck? Type hint, or show solution.
  • Type levels to see every level and which ones you've solved.
  • When Main is done, switch to the Remote tab for fetch, pull and push.

Who it's for

New developers meeting branches for the first time. Experienced developers who use Git daily but rebase with their eyes closed. Teachers and team leads, who can share a link that runs a preset list of commands to demonstrate exactly what happens to history.

Quick answers

Do I need to install anything? No. It runs in the browser and doesn't touch a real repository.

Is it real Git? It's a simulation of the core commands, which is exactly why it's safe to break history there.

Is it free? Yes, completely, and the source code is on GitHub under the MIT licence.

Random find: #education

Also in this issue

Similar finds

Telegram of the day
@cs50xenWorldwide

CS50 on Telegram

The official channel of Harvard's famous CS50 intro to computer science: bite-size explainer videos from the teaching team, free livestreams and course news.