mrkeyoor.comAsk

pcottle/learnGitBranchingtested 27 Nov 2026commit f51af0e

learnGitBranching review

Our pinned Learn Git Branching checkout passed installation in 31 seconds, build in 5 seconds and tests in 3 seconds, giving contributors a successful source-run starting point.

  • Build 5 s
  • Tests pass
31 sto install
  • 429 packages
Dev Toolsevaluationupdated 27 Nov 2026
+13stars / 7d

Learn Git Branching is a free browser application that teaches Git with a moving diagram of commits and branches. You type commands into a simulated repository or work through guided levels to understand how project history changes.

Verdict

Our pinned Learn Git Branching checkout passed installation in 31 seconds, build in 5 seconds and tests in 3 seconds, giving contributors a successful source-run starting point. Use it if you want guided visual practice with branches and commits. Skip it if you need to operate on your actual repository; the README describes a simulator with fake remotes. Follow the lessons with disposable real Git practice before applying an operation to shared work.

learnGitBranching infographic: learn Git with a moving diagram of commits and branches, plus our test result and who it suits
Tested 27 November 2026: npm install failed after 1.8 s. Before that: source install 31 s, build 5 s.

We ran it

Lab card: what happened when we ran learnGitBranching
Lab card from our sandbox run
Screenshot of learnGitBranching (pcottle.github.io/learnGitBranching)
pcottle.github.io/learnGitBranching
Install✓ · 31s429 packages · 173 MB
Build✓ · 5s
Tests✓ · 3sran, no count parsed
Repo218 files~104,156 lines of source · 9.7 MB · 2 CI workflows · Dockerfile · tests dir

Answers from our run

Does learnGitBranching build from source?

Dependencies installed in 31 seconds (429 packages), and the build succeeded in 5 seconds. We cloned commit f51af0e into a clean Debian container with 3 CPUs and no project-specific setup.

Do learnGitBranching's tests pass?

Yes. The project's own test command exited successfully in 3 seconds, although its output did not expose an individual test count.

Who should not use learnGitBranching?

You need to inspect or change your actual repository: this is a teaching simulator with simulated remotes.

What are the alternatives to learnGitBranching?

Oh My Git!, git-sim. Our pinned Learn Git Branching checkout passed installation in 31 seconds, build in 5 seconds and tests in 3 seconds, giving contributors a successful source-run starting point.

Setup2/5In our 2026-11-27 run “npm install LearnGitBranching@latest” failed with “npm error A complete log of this run can be found in: /work/home/.npm…”, though our source checkout installed in 31 s and built in 5 s.Editor’s note: The source-run steps passed at f51af0e, but browser operation and the documented Docker route were not exercised.
Docs2/5The 5,586-character README has no usage instructions or examples.Editor’s note: The README explains sandbox controls, custom lessons, sharing and the Yarn contributor path; tutorial correctness was not audited.
Community5/5Last push on 2026-11-23, 34,264 stars and maintainers answered or closed 10 of the 10 most-discussed issues we sampled.Editor’s note: Named learners, an instructor and translation contributors appear in the sampled discussions; support response times were not measured.
Maturity3/5No tagged GitHub release, repository created 2012-08-13 and its test suite passed in our sandbox.Editor’s note: Historical threads document deployed fixes and the pinned source steps passed; current browser coverage and learning transfer were not assessed.

How we score

Discussed on

  1. hnLearn Git Branching717 points
  2. hnLearn Git Branching245 points
  3. hnLearn Git Branching86 points
  4. hnLearnGitBranching now has lessons on git fetch, push, and pull50 points
  5. hnInteractive guide to Git branching19 points

Who it’s for

You want to understand why merge, rebase or branch-switching commands change a commit graph.
You teach Git and want a shared starting state or a custom lesson, using the README's level builder.
You know basic Git commands but want resettable practice before repeating an operation in a disposable repository.

Who it’s NOT for

You need to inspect or change your actual repository: this is a teaching simulator with simulated remotes.
You want a solution sequence to prove understanding: blentz100 reports a level accepting a route without the operation they expected.
You need evidence of improved workplace performance before adopting a course: the learner and instructor reports describe confidence and teaching use, rather than measured transfer.

Setup reality

Our November 27, 2026 run at f51af0e passed Yarn installation in 31 seconds, build in 5 seconds and tests in 3 seconds. The record lists 429 dependencies and 173 MB on disk. The configured sandbox had 3 CPUs, 8 GB RAM and image label lab-node:22.

For learning, open the hosted application. The README describes a clientside page with no backend database, so the learning route needs no Git hosting token or database credentials. Contributors clone the repository and use Yarn; the README names Vite and documents a local development server.

A separate hands-on npm recipe stopped with a registry 404 for LearnGitBranching@latest. Use the upstream source route rather than that package-name guess. The recorded image label does not identify the actual runtime or operating system; those require raw toolchain logs.

Our pinned Learn Git Branching checkout passed installation in 31 seconds, build in 5 seconds and tests in 3 seconds. Use it if you want to see how branches and commits move before you touch a working project. Skip it if you need a tool that operates on your actual repository: the project's README describes a visualizer and teaching sandbox, with simulated remotes and resettable exercises.

Learn Git Branching makes one useful bargain: you get a visible commit graph, the diagram of snapshots and their ancestry, while working inside a model of Git. That makes it a good place to ask why a branch moved after a command. My recommendation is to use the diagrams until you can explain them, then repeat the operation in a disposable real repository.

What people use learnGitBranching for

A learner reported greater branching confidence, a university instructor used it to teach Git, and contributors published their own solutions and lesson notes.

Who used it What they did What came out
Sreenivas Alapati Practised Git branching Reported that it made him fearless about branching, a personal assessment of confidence.
Olivier Cailloux, Paris-Dauphine University Used it to teach Git Asked for lessons using switch and restore instead of checkout, connecting classroom use to a specific teaching concern.
GitHub user dnepochitoj Completed the available lessons Published solutions in files named after each lesson.
GitHub user blentz100 Recorded solutions and investigated wording Reported submitting a wording correction as PR #857.
The author of issue #201 Created workflow-specific levels Wanted real branch names such as jed/topic-name, exposing a validation restriction.

The instructor's request is particularly useful if you teach. A lesson can explain the graph correctly while introducing commands differently from your course. Choose the vocabulary before assigning exercises, and ask the learner to explain where each branch points after the command. That's an editorial recommendation for using the tool, rather than a reported classroom result.

What happened when we ran it

Our November 27, 2026 source checkout at f51af0e passed installation in 31 seconds, build in 5 seconds and tests in 3 seconds.

Our measurement setup used Yarn in our sandbox, configured with 3 CPUs, 8 GB RAM and image label lab-node:22. We ran the recorded source checks at f51af0e. Installation completed first, recording 429 dependencies and 173 MB on disk. The build and test steps then succeeded. For someone considering a small contribution, those results give a concrete starting point for this pinned checkout.

Source-run step or observation Recorded result
Installation Succeeded in 31 seconds
Build Succeeded in 5 seconds
Tests Succeeded in 3 seconds
Dependencies 429 recorded, 173 MB on disk
Checkout 218 files, approximately 104,156 source lines, 9.7 MB
Repository signals 2 CI workflow files, a Dockerfile and a tests directory

A separate attempt took a different route and stopped before opening the application. The November 27 hands-on recipe targeted the npm package name LearnGitBranching at commit f51af0e8e373. After cloning with the quickstart-lib recipe, it ran npm install LearnGitBranching@latest. The registry returned 404 and said the package was not in the registry. That is where this attempt ended.

The failure entry points to npm's debug log, and teardown completed successfully. The two attempts answer different questions. The source checkout passed its recorded steps; the npm recipe requested a package the registry rejected. Follow the upstream clone-and-Yarn route when working on the source, rather than treating the application's name as an npm installation instruction.

The browser is the starting point; source setup is for contributors

You can open the hosted learning application without building the project, while the README's contributor route starts with a clone and Yarn. The upstream instructions use yarn install and yarn dev, with a development server at localhost:5173. They also document yarn build for production output in the build directory. The README names Vite as the build tool and says production builds run tests before generating output. These are setup instructions, separate from the recorded outcomes above.

For ordinary practice, begin at learngitbranching.js.org. The README describes a clientside application serving HTML, JavaScript and CSS, without a backend database. You don't need a Git hosting token or database credentials to follow that learning route. If your goal is to change lessons or simulator behavior, use the source workflow instead.

The README also documents a published container, ghcr.io/pcottle/learngitbranching, mapped from host port 8080 to container port 80. That gives you a documented hosting option. It isn't necessary just to work through the public lessons.

Where people get stuck: dialogs, dragging and branch names

Historical issue threads show that a blocked goal dialog and broken rebase dragging could interrupt learning before the learner made a Git mistake.

Symptom What the reporter encountered Resolution described in the thread
Goal window will not close Issue #688 reports this.goalVis is undefined across several browsers. In #691, pcottle announced an update through PR #690; another reporter said an alternate deployment worked.
Rebase commits do not move Issue #682 reports dragging did nothing during git rebase -i HEAD~4. Pcottle restored a working production version and later advised a hard refresh after integration work. A subsequent comment identified another missing draggable component.
Goal obscures the work Issue #156 asked to keep the goal visible and movable. Pcottle said PR #166 was merged, followed by bug fixes and production deployment.
Cursor drifts from the text AlexByte in #411 reported enlarged-font and browser differences. Pcottle adopted the suggested span-based approach and announced a deployed update.
Realistic branch names rejected Issue #201 asked for slashes and dashes. Pcottle reported relaxing validation and adding a test case; the discussion also raised dots and the reserved o/ prefix.

The goal-dialog report deserves attention because it looked like a beginner's mistake. One first-time user said they initially thought the problem was theirs. Other reporters had already tried the window buttons and hide goal, with no result. If you hit that exact symptom, compare your browser console with the error in #688 before spending more time on command syntax.

The rebase thread is a warning against reading a closed label as the whole story. The maintainer announced a working production update, then a contributor spotted a missing draggable component. Use the thread's specific troubleshooting history, including the hard-refresh advice, without turning it into a claim that every browser interaction is fixed today.

Solutions are useful when you can explain the resulting graph

Dnepochitoj's answer repository organises solutions by lesson title, while blentz100's notes include alternative approaches and a disputed lesson outcome. For learngitbranching solutions and learngitbranching answers, dnepochitoj's repository provides a lesson-by-lesson index. If you search for learngitbranching js org solutions, that is a community answer collection, distinct from the official application. The author says they shared it after completing the available lessons.

Blentz100's notes describe Juggling Commits #2 accepting a solution without the amend operation the author expected. That report gives you a practical reason to read the objective as well as the success message. A graph can reach a target through a route that teaches something different from the intended exercise.

My advice is to look up the smallest part you're stuck on, then close the answer and explain the graph aloud. Which commit does the branch name identify? Did the command create a commit, copy one, or move a pointer? If your explanation depends on remembering a command sequence, repeat the exercise with a different starting branch. This is a proposed study method, not a measured result from our lab.

Shared lessons run a sender's chosen commands

The README says the command URL parameter executes a command sequence when the page loads, and the level builder exports a lesson as JSON. That makes permalinks and custom levels useful teaching tools. You can send someone a reproducible starting state instead of asking them to reconstruct a diagram from a screenshot. The build level command creates the lesson, while import level accepts its JSON. The README also describes loading a lesson through a gist identifier.

Treat the commands in a shared link as someone else's chosen exercise. Read what the sender wants the learner to run, especially before using an imported level in a class. The documented remote-creation command is git fakeCreateRemote: it creates a simulated remote inside the teaching environment. A successful push exercise there should lead to a separate lesson about your team's actual hosting permissions and review process.

For bug reports, the README suggests debug_copyTree() in the browser's JavaScript console before reproducing a failure. The maintainer can use that state through importTreeNow. That is more useful than a report saying only that rebase looks wrong.

English lessons coexist with community translations

The official site exposes an English locale, and historical contributors translated lessons and interface text into Chinese and Korean. In issue #42, bcho, cyjake/dotnil and urigit describe translation and internationalisation work. Pcottle reported incorporating Chinese level translations and adding locale switching. This is concrete contribution evidence: people worked on the explanatory dialogs and interface controls, beyond recommending the project.

Issue #175 started with a learner having to navigate English dialogs before finding the language selector. Pcottle announced a deployed language-detection change, later refined Chinese locale selection, and said explicit URL locale parameters still took precedence. For English study, the official en_US URL selects English.

Translation maintenance also affects teaching choices. In #915, the maintainer connected changing command terminology with refreshing translations. If you prepare a course in several languages, compare the actual lesson text your students will see rather than assuming the English wording and every translation move together.

Learn Git Branching vs Oh My Git!, git-sim and real Git

Choose Learn Git Branching for prepared browser exercises, Oh My Git! for a downloadable learning game, and git-sim for visualising operations in your own repository.

Choice What makes it different Choose it when
Learn Git Branching The README documents a browser sandbox, levels, undo and reset. You want to practise a commit-graph concept with a prepared starting state.
Oh My Git! Its README offers downloadable Linux, macOS and Windows binaries. It explicitly describes low-maintenance mode. You prefer a desktop learning game and can accept the maintainers' stated availability.
git-sim Its README describes visualising Git commands in your own repositories. Your question concerns the history of a repository you already have.
A disposable real Git repository You run actual Git against files you can afford to discard. You are ready to practise file changes and follow your team's real remote workflow.

The useful comparison is the object you're learning on. Learn Git Branching gives you the lesson's graph. Git-sim starts with your repository. A disposable Git project lets you connect graph changes with file contents. Those jobs can form a sequence rather than a permanent choice between products.

What the other reviews get wrong

WhatIsGitHub and ExplainGit's May 2026 pages describe Gulp, while the current upstream README names Vite. WhatIsGitHub and ExplainGit both list Gulp in their setup descriptions. Follow the upstream Vite and Yarn instructions for a current contributor checkout. Likewise, the npm-and-Grunt recipe in the malyshkosergey fork belongs to that historical fork. Its statement that the build can finish regardless of tests conflicts with upstream's current description of tests preceding production output.

Both explanation pages also describe every Git command becoming an animated visual. Upstream says you can input a variety of commands. That narrower promise is the one to use when deciding whether a specific operation belongs in your lesson.

There is a conceptual error in blentz100's solutions notes: one sentence defines detached HEAD through whether it points at the most recent commit. The official lesson defines detachment as HEAD pointing directly at a commit instead of a branch. Recency is not the test. HEAD means the current checkout reference; a detached HEAD can point directly at a commit regardless of how recently that commit was created.

Questions people ask

Learn Git Branching is a free visual Git learning application, and its official site is learngitbranching.js.org, where you can select guided levels or use the sandbox.

What is Learn Git Branching, and where is the official site?

It is a Git visualizer with tutorials and challenges at learngitbranching.js.org. The project README describes the sandbox and levels; the visual graph shows what supported commands change.

Where is the Learn Git Branching GitHub repository?

The learngitbranching GitHub repository is pcottle/learnGitBranching. Use that upstream repository for contributor instructions rather than copying a setup recipe from an older fork.

Where can I find Learn Git Branching solutions and answers?

Dnepochitoj publishes solutions indexed by lesson title, and blentz100 publishes solutions with notes. These are community guides. Compare their explanation with the current lesson before copying a sequence.

Is Learn Git Branching good for learning Git?

It is a useful choice for understanding commit graphs: Sreenivas reported greater confidence, and Olivier Cailloux confirmed university teaching use. Follow the simulator with real-repository practice when your goal includes working with files and teammates.

How do I close the goal window when hide goal does not work?

The historical failure returned this.goalVis is undefined in issue #688. In #691, pcottle announced an update through #690. If those symptoms recur, include the console error in a report instead of assuming you typed the command incorrectly.

Can I keep the goal visible and move it while solving a level?

Yes, draggable goal windows were announced as deployed after PR #166 in issue #156. That change was designed to let the goal, current graph and command history stay visible together.

Why does dragging commits in interactive rebase do nothing?

Issue #682 describes that exact failure and a maintainer's hard-refresh advice after a production update. The thread also includes later dependency-integration follow-up, so use it to compare symptoms rather than guessing at a current cause.

Does Learn Git Branching teach git switch and git restore instead of checkout?

The official generated lesson text now prefers git switch for changing branches. Issue #915 requested both switch and restore; that request alone is not proof of a complete restore curriculum.

Can branch names contain slashes, dashes and dots?

Issue #201 records a validation change and a test case for the branch-name restriction. Dots and the simulator's reserved o/ prefix also appear in the discussion. Use your intended names when authoring a custom exercise.

Why does the terminal cursor become misaligned when I enlarge the font or zoom?

AlexByte reported font-size and browser differences in #411. Pcottle announced a replacement for the absolute-positioning approach and a deployed update. A fresh report should include browser and zoom settings.

How can I translate Learn Git Branching into another language?

Issue #42 describes translating dialogs, levels and interface strings. It also records the maintainer acknowledging that editing the translation files was cumbersome and discussing an interactive script. Ask about the current contribution route before following those historical file paths.

Can Learn Git Branching automatically use my browser's preferred language?

Pcottle announced language detection in #175 and said URL locale parameters still take precedence. An explicit locale URL is useful when you need everyone in a class to open the same language.

What we have not tested yet

Our successful source steps establish packaging and test-command outcomes for one checkout, not browser behavior or learning gains.

We have not tested a browser, mobile, keyboard, screen-reader or zoom compatibility matrix. The old dialog, cursor and dragging threads identify useful regression cases, but their fixes have not been replayed against the November checkout. The separate npm attempt never reached the application, and there are no recorded lesson answers or screenshots from that attempt.

We have not tested whether learners transfer their level performance to real team workflows, nor whether accepted shortcuts exercise every lesson's intended concept. Sreenivas's confidence report is personal feedback. University teaching use does not provide student outcome measurements or demonstrate assignment collection, explanation marking or progress tracking for instructors.

We have not checked translation completeness against the newer switch-based English lessons, a complete restore teaching sequence, or exhaustive branch-name compatibility. Issue #42's promised interactive translation script is not demonstrated as completed by that discussion.

The current Docker distribution, a local production page and imported lesson security have not been exercised. The clientside architecture is not a security audit, and no vulnerability result accompanies our source run. Actual runtime and operating-system versions require raw toolchain logs: lab-node:22 is an image label. The test command passed, but no individual passing-test count was recorded.

The next useful check is to choose a level you need, explain its resulting graph, and repeat the operation against disposable files with real Git before applying it to shared work.

Alternatives

ProjectWhat it isPick it when
Oh My Git!A downloadable open-source Git learning game for Linux, macOS and Windows.Choose it when you prefer a desktop game and accept the README's stated low-maintenance status.
git-simVisualises Git commands and workflows against your own repository.Choose it when your question concerns an existing project history rather than a prepared teaching level.

Sources

  1. Learn Git Branching upstream README
  2. Official learning application
  3. Official generated lessons
  4. Goal-dialog failure and update
  5. Interactive rebase dragging
  6. University teaching and switch request
  7. Oh My Git! README
  8. git-sim README

More dev tools reviews