Skip to content

A CLI program written in GO that generates a git contributions graph (similar to the one on GitHub).

Notifications You must be signed in to change notification settings

gleni1/git-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Contribution Visualization

This project is a Go-based command-line tool that scans Git repositories in a specified folder, collects commit statistics for a specified email, and generates a contribution graph for the last 6 months. The program generates a visual output of the contributions made to the repositories, similar to the contribution graphs seen on GitHub profiles.

Features

  • Scan for Git repositories: You can recursively scan a folder for all Git repositories.
  • Commit statistics: Collect and display the number of commits for a specified email in the last 6 months.
  • Contribution graph: A weekly view of your Git activity, visualized using colored cells based on commit frequency.
  • Custom folder scan: You can add new folders to scan for Git repositories.

How it Works

The program scans for all repositories inside a specified folder (or recursively looks in subfolders). It tracks the commits made by a specific email address over the last 6 months and generates a contribution graph based on these commits.

Prerequisites

  • Go 1.18 or higher
  • The go-git library for accessing Git repositories (used for repository and commit access)

Required Dependencies

To install the necessary dependencies for the project, run:

go mod tidy

How the graph will look like:

Go Git Graph

About

A CLI program written in GO that generates a git contributions graph (similar to the one on GitHub).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages