← 返回命令列表

Linux command

gitstats 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Generate stats for repository

gitstats [repo_path] [output_dir]

Generate stats for

gitstats -c commit_begin='HEAD~10' [repo] [output]

Set project name

gitstats -c project_name='[MyProject]' -c max_authors=[20] [repo] [output]

说明

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.

参数

-c _key=value_
Configuration option. Can be specified multiple times.
project_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.

FAQ

What is the gitstats command used for?

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.

How do I run a basic gitstats example?

Run `gitstats [repo_path] [output_dir]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c _key=value_ do in gitstats?

Configuration option. Can be specified multiple times.