Navigate git history without losing your way

Lattice renders your repository's commit graph in the terminal and lets you jump between any point in history with arrow keys, just like paging through docs.

$ lattice install

Features

Keyboard-driven

Navigate with arrow keys, vim motion, and fuzzy search. No mouse needed. Every commit is one keystroke away.

Full DAG rendering

See the entire commit graph, merges, and rebases. Lattice computes the DAG layout so you always know where you are.

Instant diff previews

Press Enter on any commit to see the diff inline. Switch between compact, unified, and stat views without leaving the graph.

Demo

~/project — lattice
❯ lattice open Loading repository... 847 commits Rendering graph on 24 columns × 80 rows   ◉ a3f2b1c feat: add authentication middleware │ ├─ ◉ d8e4f02 docs: update API reference │ └─ ◉ c1a7b3e fix: handle null in request parser │ └─ ◉ f9d2e87 chore: bump dependencies   ● Use ↑↓ to navigate · Enter for diff · / to search   ❯ lattice log --since 2.weeks --graph Filtered to 42 commits in range   ❯

How it works

Read the object graph

Lattice uses libgit2 to parse your repository's commit graph directly, so it works on repos with thousands of branches in under 100ms.

Render to your terminal

The commit DAG is laid out using Sugiyama-style layered graph rendering, then drawn with Unicode box-drawing characters in your terminal.

Navigate and inspect

Move between commits with keyboard shortcuts. View diffs, blame, and file trees inline. Type / to fuzzy-search any commit.

Stop digging through git log

See your entire history. Navigate it like a proper tool.

$ lattice install