tomgi/git_stats
tomgi/git_stats has 1,082 GitHub stars and 156 forks. GitHot measured 0 in 7 days and 0 in 15 days. Last checked 2026-11-09 13:34 UTC. Last push 2025-11-07.
GitStats is a git repository statistics generator.
Measured star growth
- in 24h
- Update delayed
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original⚠️ ⚠️ ⚠️ PROJECT NO LONGER MAINTAINED ⚠️ ⚠️ ⚠️
This project is no longer actively maintained.
Please consider using one of the active forks instead, e.g. https://github.com/mishina2228/nova_git_stats
GitStats

GitStats is a git repository statistics generator. It browses the repository and outputs html page with statistics.
Examples
Installation
Existing ruby/gem environment
$ gem install git_stats
debian stretch (9.*)
# apt-get install ruby ruby-nokogiri ruby-nokogiri-diff ruby-nokogumbo
# gem install git_stats
Ubuntu
$ sudo apt-get install ruby ruby-dev gcc zlib1g-dev make
$ sudo gem install git_stats
Usage
Generator
Print help
$ git_stats
Commands:
git_stats generate # Generates the statistics of a repository
git_stats help [COMMAND] # Describe available commands or one specific command
Print help of the generate command
$ git_stats help generate
Usage:
git_stats generate
Options:
p, [--path=PATH] # Path to repository from which statistics should be generated.
# Default: .
o, [--out-path=OUT_PATH] # Output path where statistics should be written.
# Default: ./git_stats
l, [--language=LANGUAGE] # Language of written statistics.
# Default: en
f, [--first-commit-sha=FIRST_COMMIT_SHA] # Commit from where statistics should start.
t, [--last-commit-sha=LAST_COMMIT_SHA] # Commit where statistics should stop.
# Default: HEAD
s, [--silent], [--no-silent] # Silent mode. Don't output anything.
d, [--tree=TREE] # Tree where statistics should be generated.
# Default: .
c, [--comment-string=COMMENT_STRING] # The string which is used for comments.
# Default: //
Generates the statistics of a repository
Start generator with default settings
$ git_stats generate
git rev-list --pretty=format:'%h|%at|%ai|%aE' HEAD | grep -v commit
git shortlog -se HEAD
...
Start generator with some parameters in long and short form.
$ git_stats generate -o stats --langugage de
git rev-list --pretty=format:'%h|%at|%ai|%aE' HEAD | grep -v commit
git shortlog -se HEAD
...
API usage example
> repo = GitStats::GitData::Repo.new(path: '.', first_commit_sha: 'abcd1234', last_commit_sha: 'HEAD')
> repo.authors
=> [...]
> repo.commits
=> [...]
> commit.files
=> [...]
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
- Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,576 starspublic-apis/public-apis
A collective list of free APIs
497,894 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
449,513 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,300 stars