Git account is fixed for the period

Is there a way to count the number of commits for a given period (e.g. last year from 2015-03-01 to 2016-03-01) for git repositories (GitHub)?

+6
source share
1 answer

To count commits in a date range in the current branch, follow these steps:

git rev-list --count HEAD --since="Dec 3 2015" --before="Jan 3 2016" 

If you want the counting for all branches to be used at a time - additionally optional

 git rev-list --count --since="Dec 3 2015" --before="Jan 3 2016" --all 

if you want to exclude merge commands, use the --no-merges option

 git rev-list --count --since="Dec 3 2015" --before="Jan 3 2016" --all --no-merges 
+12
source

All Articles