Skip to content

Instantly share code, notes, and snippets.

@fabdrol
Created January 15, 2017 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabdrol/05e077a93b2a9343c78a549121041b2b to your computer and use it in GitHub Desktop.
Save fabdrol/05e077a93b2a9343c78a549121041b2b to your computer and use it in GitHub Desktop.
Bash script to get all contributors from a bunch of repositories. The script loops through a folder containing github repositories, run git log and append the output to a file in the rootdirectory.
#!/usr/bin/env bash
for f in */
do
( cd "./${f}"; (echo "${f}" >> ../shortlog.txt); ( git log --pretty="format:%an <%ae>" >> ../shortlog.txt); cd "../"; )
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment