Skip to content
KBHXgamesAll games

Play Learn Git Branching Online

Type git commands and watch a live commit tree change. Solve each level by matching the target shape.

Learn Git Branching gameplay screenshot
  • Best with keyboard & mouse

Learn Git Branching at a glance

Genre
Puzzle Games
Play with
Keyboard, Mouse
On phones
Best on a computer
Players
1 player
Price
Free, no sign-up
License
MIT

Learn Git Branching turns version control into a series of visual puzzles. A terminal sits on one side of the screen, and a live diagram of commits and branches fills the rest. Each level shows a target tree, and you type git commands until your tree has the same shape. Peter Cottle made it, and it covers everything from your first commit to rebasing across remotes.

What Is Learn Git Branching?

It is an interactive learning tool shaped like a puzzle game. Instead of reading about git, you see what each command does to the commit tree right away. Because it runs on a simulated repository in the browser, nothing touches the files on your computer.

How a Round Plays Out

  1. Each level opens with a short lesson, often with a step-by-step demo.
  2. Close the lesson, and the terminal is ready for input.
  3. Type a command such as git commit, git branch or git checkout, then press Enter.
  4. Watch the circles and labels move to show what changed.
  5. Compare your tree with the goal window. Type show goal or hide goal to toggle it.
  6. When the trees match, the level is solved and the next one is offered.

Keys and Buttons for Learn Git Branching

Keyboard, mouse and touch controls for Learn Git Branching
What you do⌨ Keyboard🖱 Mouse
Type a commandType anywhere on the page, then Enter—
Open the level menu and pick a levelType levels, then arrow keys and EnterClick a level number in the menu
Compare your tree with the targetType show goal (or hide goal)Click Show Goal on the level bar
Get a hint or read the lesson againType hint, or objectiveClick Instructions on the level bar
Take back the last commandType undo (or reset to start over)—
Page through a lesson or close itRight arrow or Enter for next, Left arrow for back, Escape to closeClick the arrows or the check mark

Winning Strategies

  • Read the goal carefully. Note where each branch label points before you type.
  • Plan before typing. Fewer commands means a better result for the level.
  • Use undo freely. Take back a step and try a different approach.
  • Ask for hints. Type hint for a nudge or objective to reread the lesson.
  • Practice in the sandbox. Test tricky commands there before tackling a hard level.

Handy Details

  • A computer with a keyboard is required. The game cannot take input on phones or tablets.
  • Typing show solution plays the answer, but the level will not be marked as solved.
  • Type levels at any time to pick a different puzzle.

Who Should Play It

This tool is made for students, new developers and anyone who wants git to finally make sense. If you enjoy coding puzzles or step-by-step logic games, these levels make learning feel like play.

Played and checked by the KBHX Games team · updated

Learn Git Branching: Questions and Answers

Is Learn Git Branching free?

Yes. It is free to use in your browser, and there is nothing to install. The lessons and puzzles run in a simulated repository, so you can practice without setting up git on your computer.

Is Learn Git Branching good for beginners?

Yes. The first levels start with simple commits and branches, and each one opens with a short lesson. Later levels move on to rebasing and working with remote repositories, so it grows with you.

How do I get a better score on a level?

Try to reach the goal tree in as few commands as possible. Planning your steps before you type, and using undo to try again, helps a lot.

Can I practice freely without a level?

Yes. Type sandbox to leave the current puzzle and try any command you like. Type levels to bring the menu back when you want a new challenge.

If You Liked Learn Git Branching, Try These