LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gitstats

Generate statistics from Git repositories

TLDR

Generate stats for repository
$ gitstats [repo_path] [output_dir]
copy
Generate stats for last 10 commits
$ gitstats -c commit_begin='HEAD~10' [repo] [output]
copy
Set project name and max authors
$ gitstats -c project_name='[MyProject]' -c max_authors=[20] [repo] [output]
copy

SYNOPSIS

gitstats [options] repository outputdirectory_

DESCRIPTION

gitstats generates statistics from Git repositories and creates HTML reports with graphs showing commit activity, author contributions, file counts, and lines of code over time.The output is a static HTML site that can be viewed in any browser, providing a visual overview of project history and contributor patterns.

PARAMETERS

-c key=value

Configuration option. Can be specified multiple times.
### Configuration Keysproject_name
Project name shown on generated pages. Default: basename of repository directory.
max_authors
Maximum number of authors to show in the authors list.
authors_top
How many top authors to show.
max_domains
Maximum number of domains to show in domains by commits.
max_ext_length
Maximum file extension length.
commit_begin
Starting commit for statistics range.
commit_end
Ending commit for statistics range.
start_date
Starting date passed with --since to git.
processes
Number of concurrent processes for extracting data.
style
CSS stylesheet to use.

SEE ALSO

Copied to clipboard
Kai