Actually, there is a built-in Git command for this, git shortlog :
git shortlog -n -s -- myfolder
will provide a list of committers who touched myfolder . By disabling the -s option, the summary even lists a summary of the commit message for the author. The -n option sorts authors by the number of commits (highest to lowest), rather than alphabetically.
source share