git-log-zoey
v1.0.9
Published
A tool to generate daily git commit reports
Readme
git-log-zoey
一个用于生成日常 git 提交报告的命令行工具。
安装
npm install -g git-log-zoey使用方法
基本用法
git-log这将使用当前 git 配置的用户名,生成最近 1 天的提交记录报告。
指定用户
git-log <用户名>
# 例如 git-log john指定天数
git-log <用户名> <天数>
# 例如:获取用户 john 最近 7 天的提交记录
git-log john 7
# 获取当前用户最近 30 天的提交记录
git-log '' 30详细报告
不需要详细报告
git config --global git-log.noreport true需要详细报告
git config --global git-log.noreport false默认是不带有详细报告的
快捷命令
你也可以使用快捷命令 glog或者gl:
glog
glog <用户名>
glog <用户名> <天数>输出说明
工具会在当前目录下生成 daily-report.md 文件,包含以下信息:
基本信息
统计范围(天数) 提交用户 总提交次数 代码变更行数
详细记录
投入详情(提交信息) 产出结果(提交链接) 日期 变动文件
注意事项
请确保在 git 仓库目录或其父目录下运行此命令 如果不指定用户名,将使用 git config 中配置的用户名 如果不指定天数,默认统计最近 1 天的提交记录
