gitviz visualizes commit activity from your local Git repositories as a GitHub-style contribution graph in the terminal.
Register repositories first, then render the graph.
gitviz -add ~/src
gitvizBy default, gitviz reads your commit email from:
git config user.emailYou can pass an email explicitly when needed.
gitviz -graph your.email@example.comRegistered repositories are stored in:
~/.gitlocalstatsIf you use Nix with flakes enabled, run the latest version from GitHub without installing it.
nix run --refresh github:anton-fuji/gitvizPass options after --.
nix run --refresh github:anton-fuji/gitviz -- -days 365 -color bluenix profile install github:anton-fuji/gitvizbrew tap anton-fuji/gitviz
brew install gitvizgit clone https://github.com/anton-fuji/gitviz.git
cd gitviz
go install .Scan a parent directory and save all Git repositories found under it.
gitviz -add /path/to/projectsgitviz skips repeated entries when updating ~/.gitlocalstats.
gitvizShow activity for a specific email.
gitviz -graph your.email@example.comShow a longer range.
gitviz -days 365Show commit counts inside each cell.
gitviz -numbersCombine options.
gitviz -days 365 -numbers -color purpleThe default theme is green. Today is always emphasized with a pink accent.
| Theme | Command |
|---|---|
| Green | gitviz -graph your.email@example.com -color green |
| Blue | gitviz -graph your.email@example.com -color blue |
| Purple | gitviz -graph your.email@example.com -color purple |
| Orange | gitviz -graph your.email@example.com -color orange |
| Gray | gitviz -graph your.email@example.com -color gray |
Color themes work in both compact mode and -numbers mode.
gitviz -graph your.email@example.com -color orange
gitviz -graph your.email@example.com -numbers -color orangeSee color.md for screenshots of every color theme.
| Flag | Default | Description |
|---|---|---|
-add <path> |
none | Scan a directory and register Git repositories. |
-graph <email> |
git config user.email |
Email address used to filter commits. |
-days <number> |
183 |
Number of days to show. |
-numbers |
false |
Show commit counts inside graph cells. |
-color <theme> |
green |
Graph color theme: green, blue, purple, orange, gray. |
go test ./...
go run . -graph your.email@example.comWith Nix:
nix develop
nix run . -- -graph your.email@example.com