Skip to main content

Git Commit Graph Viewer

See branches, merges, tags and parent links from a git log export, drawn as lanes, without installing a Git client.

Git history

860 characters, 50 lines (up to 20 MiB)

Help

Run this in your repository, then open history.txt here.

git log --all --date-order --format='%x1e%H%x1f%P%x1f%an%x1f%aI%x1f%D%x1f%s' > history.txt

Save the output to a file instead of copying it from the terminal: terminals can drop the invisible separator characters.

Text format

Each record starts with the ASCII record separator (0x1E). Its six fields are separated by the ASCII unit separator (0x1F), in this order:

  1. Commit id: 40 or 64 hexadecimal characters.
  2. Parent ids separated by single spaces; empty for a root commit.
  3. Author name only. There is no email field.
  4. Author date in strict ISO 8601, for example 2026-11-01T10:00:00+07:00.
  5. Ref decorations as git prints them, for example HEAD -> main, tag: v1, origin/main; empty when none.
  6. Subject line. Newlines, tabs and other control characters are allowed; the two separators are not.

A record with the wrong number of fields, an invalid id or a subject containing a separator is rejected with its record number and line. The valid records are still drawn and the result is marked partial.

The normalized JSON form (format codingtool-git-history-v1 with commits and refs) is also accepted. Its short ids are meant for examples and tests; real exports use 40 or 64 hexadecimal characters.

Commit graph

Analyzing…

Runs in your browser. Nothing is uploaded. Author names are shown as git recorded them; email addresses are never read.

How to use

  1. 1.Run the command shown in the tool in your repository and save the output to a file, then open that file or paste its content.
  2. 2.You can also load an example.
  3. 3.Pick a branch or tag to keep only the commits reachable from it, switch to the first-parent view to follow the main line, and search by commit id prefix, author or subject.
  4. 4.Use the arrow keys in the list to move between rows and Enter to inspect a commit: its parents in order, children, refs and missing-parent markers.
  5. 5.Export the current view as SVG or PNG, or as graph JSON.

Git Commit Graph Viewer

A commit graph is a directed acyclic graph: every commit points at its parents, and branches and tags are only labels that point at commits. This viewer reads a git log export, builds that graph from the parent ids alone and draws it as lanes, the way Git clients do, one row per commit. A merge commit keeps all of its parents in the order Git lists them, including octopus merges with more than two. When a parent is not in the export, as in a shallow clone, the row ends in a truncation marker instead of an invented ancestor.

What the graph means

Each row is one commit and each line joins a commit to a parent. The first parent continues in the same lane; other parents of a merge curve to or from another lane. A hollow dot is a merge, a square is a root commit with no parents, and a dashed stub ending in a bar marks a parent that is not in the input. Branch and tag chips are independent labels: several can point at one commit, and a commit does not belong to one branch. Rows follow the order of the export when it already lists children before parents, and a deterministic topological order otherwise. Dates are never used to connect commits.

Formats and limits

Two inputs are accepted and validated: the record-delimited export described in the tool, where fields are separated by the ASCII unit separator and records start with the ASCII record separator, and the normalized JSON with the format codingtool-git-history-v1. Arbitrary git log output is not guessed. Commit ids in the text export must have 40 or 64 hexadecimal characters. Input is limited to 20 MiB and 200,000 commits; a malformed record is rejected with its record number and line, and the rest is shown as a partial result. At most 64 lanes are drawn. Image export covers the first 2,000 rows and there is no Mermaid export because lanes cannot be written in it honestly. Local git folders and GitHub import are not supported.

Privacy

The export is read and laid out in your browser and is never uploaded, stored or logged. Author names are personal data: they are shown because the export contains them and they are included in the graph JSON export, but the format has no email field and any email address found in a name is removed. Names and subjects are never put into addresses, error messages or diagnostics.

Frequently asked questions
Is my history uploaded?
No. The export is parsed and laid out in your browser. It is not uploaded, stored or logged, and the tool makes no network request. Author names are shown because git records them; the format has no email field and any email address in a name is removed.
Why can the tool not run git log itself?
A web page cannot run Git or read a repository. You run one command in your own terminal, save its output to a file and open that file here. The exact command is shown in the tool.
Are parents guessed from dates or branch names?
Never. Edges come only from the parent ids of each commit, in the order git lists them. Dates and branch names are labels. A parent that is not in the export is shown as a truncation marker, not as an invented commit.
What happens to malformed records?
A malformed record is rejected with its record number and line, the valid records are still drawn, and the result is marked partial. Nothing is silently repaired.
Does it replace a Git client?
No. It shows parentage, merges, refs and metadata from an export. It does not show diffs, rebase or compute ahead and behind counts, and it cannot open a repository or call GitHub.

CodingTool is officially live on