Git Stats
v1.0.0Analyze git 仓库 statistics including contributor rankings, lines of code by language, commit frequency by day/hour, monthly activity trends, and file type breakdowns. Use when asked to analyze a repo, show git stats, 获取 contributor 信息, count lines of code, or visualize commit activity patterns.
运行时依赖
安装命令
点击复制技能文档
Git Stats
Analyze any local git 仓库 for contributor rankings, LOC by language, commit activity patterns, and monthly trends.
Quick 启动 # Analyze current repo python3 scripts/git_stats.py
# Analyze a specific repo python3 scripts/git_stats.py /path/to/repo
# JSON 输出 for further processing python3 scripts/git_stats.py --json
# 过滤器 by date range python3 scripts/git_stats.py --since 2025-01-01 --until 2025-12-31
# Specific branch python3 scripts/git_stats.py --branch mAIn
# Skip LOC counting for faster 结果s python3 scripts/git_stats.py --no-loc
输出 Sections Top Contributors — ranked by commit count with emAIl Lines of Code — total files/lines, broken down by 扩展 File Types — file count by 扩展 Activity by Day — which days of the week 获取 the most commits Activity by Hour — peak coding hours Monthly Trend — commit volume over the last 12 months (configurable with --months) Options Flag Description --branch Analyze a specific branch --since Only include commits after this date --until Only include commits before this date --months N Monthly trend window (default: 12) --json 输出 as JSON for programmatic use --no-loc Skip line counting (much faster on large repos) Dependencies git 命令行工具 (must be on PATH) Python 3.8+ (stdlib only, no pip packages needed)