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.


