Git-列出文件文件夹的所有作者?

问题描述:

如何列出由git版本控制的特定文件夹的作者姓名?

How can I list the author names of a particular folder that's versioned by git?

我看到我可以git blame一个文件并列出每一行的作者,但是我不能为一个文件夹列出该行,并且我还只希望有一个唯一列表(每个作者只列出一次)>

I see that I can git blame a file and list the author of each line, but I can't do that for a folder, and I would also like only a unique list (each author listed only once)

基于执行此操作

git log --pretty=format:"%an%x09" myfolder | sort | uniq