MrTechKing

2 min readFree

Learn Git Branching

Learn Git Branching is a free browser game that teaches Git. You type real git commands and watch a live commit tree change as you solve each level.

// at a glance

Is Learn Git Branching free?
Free. Yes. Learn Git Branching is free to use, with no paid plan.
Category
#Fun
Website
learngitbranching.js.org ↗
Try Learn Git Branching ↗
Learn Git Branching logo

What is Learn Git Branching?

Learn Git Branching is an interactive Git tutorial that runs in your browser. The screen has a terminal on one side and a picture of your commit tree on the other. Each level shows you a goal tree, and you type commands like git commit, git branch, git merge and git rebase until your tree matches it. Every command redraws the tree straight away, so you can see what Git is really doing instead of guessing.

It was made by Peter Cottle and is open source on GitHub under the MIT license. The levels sit in two tabs. Main has 20 levels in five sets, from your first commit through detached HEAD, relative refs, cherry-pick, interactive rebase, tags and some hard rebasing puzzles. Remote has 16 more about clone, fetch, pull and push. Nothing touches a real repository: the whole repo is simulated on the page, so you can break things and press undo. There is also a free sandbox for practice, and the official site is learngitbranching.js.org.

Main Features

  • A terminal where you type real git commands
  • A live commit tree that redraws after every command
  • 20 Main levels and 16 Remote levels
  • Lessons on merge, rebase, cherry-pick, tags, fetch, pull and push
  • A sandbox mode with undo and reset
  • Git golf: a count of how many commands you used
  • A level builder so you can make and share your own levels
  • Export and import your progress, in about 30 languages

How to Get Started with Learn Git Branching

  1. Open learngitbranching.js.org in your browser.
  2. Read the welcome dialog and press OK.
  3. Pick the first level in the Introduction Sequence.
  4. Type the git commands the level asks for and watch the tree change.
  5. Match the goal tree to clear the level, then try to beat the command count.

Learn Git Branching Pricing

Learn Git Branching is completely free. There are no ads, no paid plan and no sign up needed, and the code is open source.

Who Should Use It?

  • Students learning Git for the first time
  • Developers who never quite understood rebase
  • Teachers who want a visual way to explain branches
  • Bootcamp learners practising before a group project
  • Anyone who wants to try risky git commands safely

Learn Git Branching Alternatives

  • CSS Diner is a free game that teaches CSS selectors one level at a time.
  • SQL Murder Mystery teaches SQL by having you query a police database to solve a crime.
  • Flexbox Froggy teaches CSS flexbox by moving frogs onto lily pads.

Frequently Asked Questions

Is Learn Git Branching free?

Yes. Learn Git Branching is free with no ads and no paid plan. You do not need an account.

Does it change my real Git repository?

No. The repository is simulated in your browser, so nothing on your computer is touched. You can undo or reset at any time.

Who made Learn Git Branching?

It was made by Peter Cottle. The code is open source on GitHub under the MIT license, and the official site is learngitbranching.js.org.

Does it cover git push and pull?

Yes. The Remote tab has 16 levels on clone, fetch, pull, push and remote branches.

Can I save my progress?

Yes. The site remembers which levels you solved, and you can export your progress and import it again later.