Turn a slice of git history into a diagram worth looking at.
hmillerbakewell.github.io/pretty-git-tree
Pick a time range, run the git log command the page builds in your own clone, paste what it prints, and download a picture of the real commit graph as PNG or SVG.
Useful for brag posts and team updates first, but also as generative art.
The command prints each commit's id, time and parents, and marks HEAD, which is how the trunk is found:
git log --all --no-color --decorate-refs=HEAD --since=2026-09-21T00:00 --until=2026-09-27T23:59:59 '--format=%H %ct %P%d'This is only the data needed to construct the diagram. No branch or tag names, no authors, no messages, so a picture of a work repo gives nothing away. You copy what it prints yourself, or save it to a file and drop that on the page.
The page never reads a repository or GitHub, and there's no server: the paste is the only way in, and it stays in your browser's local storage. A week or so of git, postgres, linux, rust, go and curl from early 2026 is bundled as examples, under "Examples".
All drawn from the same week of git (early March 2026). The page offers these four:
The rest were tried and left off the page. Their code is in
src/core/renderers:
Needs Node 26 (see .nvmrc). With just:
just setup # npm install
just dev # the site at http://localhost:5173, plus sample histories in Examples
just test # run tests
just check # typecheck
just lint # lint and check formatting
just build # static site in dist/web
just preview # serve the built site
just styles # redraw the style images in media/stylesOr see the npm scripts.
Usage stats only. The page sends anonymous events to PostHog EU: which settings are used, and coarse buckets of commits, branches and merges, just so I can see the (very rough) kinds of projects people are rendering. It does not track the git ids. Under Do Not Track or Global Privacy Control nothing is sent.
Claude Code was used to help generate the code for this project.
MIT © 2026 Hector Miller-Bakewell
















