Created
January 15, 2017 20:13
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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