我试图发送一个包含开发人员每天在git存储库中完成的提交数的报告。如何在特定分支的Git存储库中获取开发人员提交的日期数
#read all the inputs
read -p "Enter the Branch Name:" branchname
read -p "Enter the from date:" frmdate
read -p "Enter the To date:" todate
#execute the command to get the commit history
git log origin/$branchname --name-status --pretty=format:"%cn committed %h on %cd full" --after="$frmdate 00:00" --before="$todate 23:59" --decorate | git shortlog -s -n > history.txt
此脚本可以帮助我创建一个文件,其中包含更改的文件和给定日期的用户。但是我需要个人开发者提交的数据。
我试过git shortlog -s -n
,它给出了开发人员在所有分支机构中的总体承诺数。
需要创建一个报告,以获得在日常工作中提交每个开发人员的数量
一定要注脚添加到您的报告中说:你有用的东西,请参阅http://dilbert.com/strip/1995-11-13** – Caleb