3

I know about git shortlog -sne, and git grep, but I need to kinda combine the two.

I'm searching for the number of occurrences of a string in the commit message, per user. I'd like the output to be:

Will: 54
Dave: 34
... etc.

Can someone help?

4

1 に答える 1

12

もしそうならgit sne、コミットメッセージをgrepgit shortlog -sneするオプションを取ることができます。--grep

git shortlog -sne --grep="a string"
于 2012-09-14T13:36:37.613 に答える