Skip to content

Instantly share code, notes, and snippets.

@bobuss
Created July 2, 2012 14:47
Show Gist options
  • Save bobuss/3033605 to your computer and use it in GitHub Desktop.
Save bobuss/3033605 to your computer and use it in GitHub Desktop.
Git commits funstats
#!/usr/bin/env bash
for i in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23; do echo $( echo -e "$i\t"; git shortlog -n --format='%ad %s' | grep " $i:" | wc -l); done
#!/usr/bin/env bash
for i in Mon Tue Wed Thu Fri Sat Sun; do echo $( echo -e "$i\t"; git shortlog -n --format='%ad %s'| grep "$i " | wc -l); done
#!/usr/bin/env bash
git shortlog -ns
@sway
Copy link

sway commented Jul 11, 2012

A little more elegant solution for the first one: https://gist.github.com/3093072

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment