Count today's commits in Git on *nix
git log | grep "`date | awk '{print $1, $2, $3}'`" | wc -l
Written by Matthew Daly
Related protips
2 Responses

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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#