Last Updated: February 25, 2016
·
975
· bobuss

git commits fun stats

# commits by hour of the day

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

00 30
01 8
02 0
03 1
04 1
05 0
06 12
07 18
08 52
09 264
10 1069
11 1532
12 1170
13 574
14 1318
15 1674
16 1631
17 1882
18 1450
19 207
20 28
21 45
22 52
23 48

# commits by day of the week

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

Mon 2897
Tue 2739
Wed 2855
Thu 2613
Fri 1898
Sat 32
Sun 31

commiters ranking

git shortlog  -ns

  2348  Bob
  1351  Suny
  1075  Gerald
   920  Any
   853  ...

see https://gist.github.com/3033605