2015-02-27

What's your most frequent git subcommand?

history | awk '{ $1="";print }' | awk '$1=="g" || $1=="git" { print $2 }' | sort | uniq -c | awk '$1>1' | sort -r

It will show a standard output like the one below:

724 s
 424 d
 299 ci
 169 l
 139 add
 131 push
  71 stash
  58 co
  45 pull
  45 dc
  34 rebase
  29 clone
  27 remote
  25 reset
  21 b
  15 rm
  15 commit
  10 init
   9 --no-pager
   8 submodule
   8 checkout
   7 branch
   6 --version
   4 tag
   4 status
   3 reflog
   3 diff
   3 config
   3
   2 st
   2 merge
   2 cherry-pick

Have fun!

Feel free to contact me @ymkjp