public
Last active

Find the most used verbs in your Git commit messages

  • Download Gist
.gitconfig
INI
1 2
[alias]
verbs = !git log --pretty=format:'%s' | cut -d \" \" -f 1 | sort | uniq -c | sort -nr
gistfile1.sh
Shell
1 2 3 4 5 6 7
$ git verbs
440 Add
350 Merge
245 Fix
128 Remove
91 Improve
66 Use

Outstanding. Great fun.

While I was able to add this as an alias in my .zshrc, I wasn't able to add it to my .gitconfig. It kept complaining about one of the pipes (|).

I updated the gist to add a handy alias :smile:

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.