Developer and Text Tools

How to Browse Git History in Your Browser: Graph, Diffs and Blame

Explore a local Git repository in the browser with no install: how Git stores commits and branches, plus a history graph, diffs, file tree and blame.

Saizul Amin
Saizul Amin2 Nov 2026 · 4 min read
How to Browse Git History in Your Browser: Graph, Diffs and Blame

How to Browse Git History in Your Browser: Graph, Diffs and Blame

Sometimes you need to look through a project's history on a machine where you cannot install a Git client, or you want to show a colleague how a feature evolved without opening a terminal. A visual view of commits, branches and changes also makes Git much easier to understand. This guide explains how Git stores history under the hood and how to explore any local repository read-only, straight from your browser.

How Git stores history

Everything Git knows lives in the hidden .git folder. At its core is a simple content-addressed database of objects, each named by a hash of its contents:

  • A blob stores the contents of one file version.
  • A tree stores a directory listing: names pointing to blobs and other trees.
  • A commit points to one tree (a full snapshot of the project), lists its parent commits, and records author, date and message.
  • An annotated tag object points to a commit with its own message.

Because each commit points to its parents, history forms a chain, or more precisely a directed graph. A normal commit has one parent; a merge commit has two or more. Branches are not containers of commits at all. They are just small files under refs/heads/ holding the hash of the latest commit, and tags under refs/tags/ work the same way.

Objects are stored either as loose files or packed together in packfiles to save space. Git does not store diffs between commits as its main record. When you ask for a diff, it compares two snapshots and computes the difference on the fly, by default with Eugene Myers' 1986 algorithm.

Blame builds on the same idea. To attribute each line of a file, Git walks back through history and finds the commit in which each line last changed.

Exploring a repository with the browser tool

Open the Git Repository Browser for Local Folders in a desktop Chromium browser such as Chrome or Edge. It relies on the File System Access API, which Firefox and Safari do not provide; the tool tells you so instead of failing silently.

  1. Open a repository folder. Choose the project folder that contains .git, and confirm read access when the browser asks. The tool then loads isomorphic-git, a pure JavaScript implementation of Git, from a CDN at a fixed version. Its file adapter refuses every write, so the repository cannot be modified.
  2. Choose what to show. Pick a branch or tag, or tick all branches, and set the depth to limit how many commits per branch are read. A lower depth keeps large repositories responsive.
  3. Explore history. Commits appear newest first, each placed in a coloured lane so parallel branches show as separate lines that join at merges. Search by message, author or hash, and export the log as CSV.
  4. Read diffs. Click a commit to see its full message, author, date, parents and the files it added, modified or deleted compared with its first parent. Click a file to see a unified diff with three lines of context. Binary files are detected and skipped.
  5. Browse files and blame. In the Files tab, open any tracked file at the selected branch or tag with line numbers, then press Blame to see which commit introduced each line. Clicking a commit jumps to its diff.

Branches, tags and authors are also listed, which is handy for a quick overview of who has worked on what.

A worked example

Take a project with two branches, main and feature/login. The graph shows main in one lane and the feature branch in a second lane that later merges back. Selecting the merge commit and looking at its second parent lists three modified files. Clicking src/auth.ts shows a hunk that adds six lines and removes two. Opening the same file in Files and pressing Blame attributes most lines to the initial commit and the six new lines to the login commit, which confirms where the authentication logic came from.

Tips

  • Clone first. The tool reads local folders only, so clone remote repositories with Git, then open the folder.
  • Start with a small depth on large repositories and increase it when you need older history.
  • Use the first-parent view of merges deliberately. Changed files are compared with the first parent, so look at the second parent to see what the merged branch contributed.
  • Use blame as a pointer, not a verdict. The commit that last touched a line may only have reformatted it; read its diff before drawing conclusions.

Files are read locally; only the isomorphic-git library is downloaded, and your code is not uploaded anywhere. For background on the library, see the isomorphic-git documentation.

Limits

Blame follows one branch's history and does not detect moved, copied or renamed lines the way git blame -M -C does. Submodules, worktrees, shallow clones and Git LFS content are not resolved, and very large repositories load slowly because pack files are read into memory. The tool works only in desktop Chromium browsers. It is strictly read-only: it cannot commit, push, check out or change branches, so use Git itself for any of those.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages