Last Updated: February 25, 2016
·
976
· matthewbdaly

Count today's commits in Git on *nix

git log | grep "`date | awk '{print $1, $2, $3}'`" | wc -l

2 Responses
Add your response

Why not git log --since=$(date +%U)?

over 1 year ago ·

@hauleth I have since found a shorter method that doesn't need awk - git log --since="8am" | grep Date: | wc -l

over 1 year ago ·