Git commit stats
For the people loving statistics on commit messages
Top-30 commit messages (first line)
git log --pretty=format:%s | sort | uniq -c | sort -n | tac | head -30
Most common first words in commit messages
git log --pretty=format:%s | cut -d " " -f 1 | sort | uniq -c | sort -n | tac | head -30
Top all-time committers
git log --pretty=format:%an | sort | uniq -c | sort -n | tac | head -30
Time most often committed
git log --pretty=format:%aD|cut -d " " -f 5|cut -d ":" -f 1|sort|uniq -c|sort -n|tac # hour
git log --pretty=format:%aD|cut -d " " -f 1|sort|uniq -c|sort -n|tac # weekday
git log --pretty=format:%aD|cut -d " " -f 1,5|cut -d ":" -f 1|sort|uniq -c|sort -n|tac | head -20 # weekday & hour
Written by Lars Vierbergen
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#