Tuesday, June 11, 2013

List all git authors for a specific project

Found this command to be pretty handy to list all the authors user names for a git project:

git log --format='%aN <%aE>' | awk '{arr[$0]++} END{for (i in arr){print arr[i], i;}}' | sort -rn | cut -d\ -f2- 

Found it on this site: http://www.commandlinefu.com/commands/view/4519/list-all-authors-of-a-particular-git-project