When I tried teaching git to coworkers and friends, the same two fears kept coming up: having to install it, and breaking something on their computer. Learn Git gets rid of both. It runs entirely in the browser, so there’s nothing to install and it never touches your files.

It’s built for beginners and assumes no coding experience. It starts with the basics and works up to branches and merge conflicts.

Site: learn-git.jrsjackson26.workers.dev

Source: github.com/jonnyjackson26/learn-git

Features

  • A real git repository. Commands run against an actual repository in your browser, not a simulation of one.
  • A familiar editor. Explorer, Source Control panel, tabs and a terminal, laid out like VS Code, so the skills carry over.
  • A live commit graph that shows branches, merges and tags as you create them.
  • Short, focused levels with goals that are checked automatically after every command and every save.
  • Two ways to do everything. Each step can be done in the terminal or with the Source Control buttons.
  • Private by design. Your files and progress stay in your browser. There is no server.

What you’ll learn

34 levels in 5 units. The lessons follow a small pizza restaurant’s repository, and each unit picks up where the last one ended.

  1. Getting started: init, add, commit, log
  2. The everyday workflow: staging, restore, diff, unstaging, .gitignore
  3. Branching & merging: branches and HEAD, switch, fast-forward merges, merge commits, merge conflicts
  4. Undoing & time travel: show, detached HEAD, commit --amend, revert, reset, stash
  5. Cherry-pick & tags: cherry-pick, lightweight and annotated tags

How it works

It’s a static single-page app, so everything happens on the client:

  • isomorphic-git , a pure JavaScript implementation of git, runs every command. A small shell on top adds what it doesn’t provide, like merge-conflict state, revert and a merge-aware log.
  • LightningFS stores the repository in IndexedDB, so your work survives a page reload.
  • Monaco (the editor behind VS Code) and xterm.js provide the editor and the terminal.
  • React and Vite for the interface and build, hosted on Cloudflare.