gitviz is a command-line utility written in Go that visualizes your Git commit activity from local repositories, mimicking GitHub's contribution graph directly in your terminal.
If you have Homebrew installed, you can easily set up gitviz by following these steps.
brew tap anton-fuji/gitvizbrew install gitvizIf you prefer to install gitviz directly from source using Go.
git clone https://github.com/anton-fuji/gitviz.git
cd gitvizgo mod tidygo install .This command compiles gitviz and places the executable in your $GOPATH/bin, making it accessible from any directory in your terminal.
gitviz provides two primary CLI options.
Before visualizing, you need to tell gitviz which repositories to monitor. This command scans a parent directory for Git repositories and saves their paths for future analysis.
gitviz -add /path/to/your/git/projects/directoryNote
Registered repository paths are saved in a hidden file named .gitlocalstats in your home directory
Once repositories are registered, you can generate and display your contribution graph by specifying your Git commit email address.
gitviz -graph your.email@example.com- Replace
your-address@example.comwith the email address you use for your Git Commits.
