Get list of authors on project, directory, branch in Git

I was just wondering who on our project has experience with a certain feature set and thought that should be as easy as checking who has modified or added files in certain directories. This simple problem is solved with git log.


git log --format='%aN'

This is relatively fast as compared with standard formatting because only the authors are output. However, this outputs ALL commits, nothing the sort program can’t fix.


git log --format='%aN' | sort -u

Use ‘–all’ to check all git refs, or branches.

git log --all --format='%aN' | sort -u