The command git shortlog -sne
is exactly what I need, but I want to be able to specify a date range for that which isn't an option for shortlog
. Is there another way to accomplish this same thing, but for a specific date range?
Show activity on this post. This gives me an exact count of commits in the current branch having its base on master. The command in Peter's answer, git rev-list --count HEAD ^develop includes many more commits, 678 vs 97 on my current project.
The git log command displays all of the commits in a repository's history.
Although git shortlog --help
doesn't seem to specify it, shortlog
takes the same --since
, --after
, --before
and --until
parameters that git log
does. So, for example:
git shortlog -sne --since="01 Jan 2015" --before="01 Feb 2015"
Note:
This was verified on git 2.1.0 running on Fedora 21 and on git 1.8.3.1 running on RHEL 7.1. I don't have older systems at hand, but I believe these parameters were supported there for a while.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With