GITTOP(1)

NAME

gittopA beautiful terminal UI for visualizing Git repository statistics, inspired by htop/btop.

SYNOPSIS

$go install github.com/hjr265/gittop@latest

INFO

112 stars
3 forks
0 views

DESCRIPTION

A beautiful terminal UI for visualizing Git repository statistics, inspired by htop/btop.

README

GitTop

A beautiful terminal UI for visualizing Git repository statistics, inspired by htop/btop.

Go

Summary — KPI cards and commit activity chart

Prototyped rapidly with an agentic coding tool. Read the blog post.

Install

Arch Linux (AUR)

yay -S gittop

Homebrew

brew install hjr265/gittop/gittop

Go

go install github.com/hjr265/gittop@latest

Or build from source:

git clone https://github.com/hjr265/gittop.git
cd gittop
go build -o gittop .

Usage

gittop               # visualize the current directory's Git repo
gittop /path/to/repo

When no path is given, GitTop also respects the GIT_DIR and GIT_WORK_TREE environment variables.

Tabs

#TabWhat it shows
1SummaryKPI cards (total commits, active days, peak day, time span, latest release) + area chart (braille or block)
2ActivityHeatmap, by-hour, by-weekday, by-month distributions
3ContributorsSplit panel: ranked list (left) + per-author detail with cadence, schedule, top files (right)
4BranchesSortable table with last commit, author, ahead/behind counts
5FilesLargest files, most churn, most authors, stalest files, language breakdown
6ReleasesTag timeline and release cadence chart
7CommitsScrollable commit log with diff viewer and search

Screenshots

Activity — By HourActivity — Filtered by author
Contributors — Author detailFiles — Language breakdown
Releases — Tag timelineCommits — Log

Keys

KeyAction
17Switch tab
Tab / Shift+TabNext / previous tab
+ / -Widen / narrow date range (3m, 6m, 1y, 2y, 5y, all)
/Open global filter (author:"name", path:*.go, branch:main, "keyword", and/or/not)
EscClear filter or page-local search
rRefresh (re-scan repository)
d / w / m / yChart granularity: daily, weekly, monthly, yearly (Summary)
vCycle sub-views (Activity, Contributors, Files, Releases)
fFile path filter (Files tab)
s / SSort column / toggle order (Branches); search (Commits)
j / kScroll down / up
g / GJump to top / bottom
EnterOpen commit diff (Commits)
oOpen options menu (color theme, truecolor, graph symbol)
qQuit

Recommended Setup

For best results with the block character bar charts:

  • Terminal: Kitty, Alacritty, or WezTerm
  • Font: JetBrains Mono, Iosevka, or Fira Code

License

BSD 3-Clause License. See LICENSE for details.

SEE ALSO

clihub3/19/2026GITTOP(1)