标签: git
我知道git shortlog -sne和git grep,但我需要将两者结合起来。
我正在搜索每个用户提交消息中字符串的出现次数。我希望输出为:
Will: 54 Dave: 34 ... etc.
有人可以帮忙吗?
答案 0 :(得分:8)
如果git sne表示git shortlog -sne,那么可以使用--grep选项来提交提交消息。
git sne
git shortlog -sne
--grep
git shortlog -sne --grep="a string"