Last active
April 26, 2018 12:23
-
-
Save Kelfitas/dc87b553b8accc4b72ca343c8098ff9c to your computer and use it in GitHub Desktop.
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
export ORG=<organization> \ | |
&& mkdir $ORG \ | |
&& cd $ORG \ | |
&& curl -u <username|username:token> -s https://api.github.com/orgs/$ORG/repos\?per_page\=200 \ | |
| grep ssh_url \ | |
| awk '{print $2}' \ | |
| sed -e "s/\"//g" \ | |
| sed -e "s/,//g" \ | |
| xargs -I{} bash -c "git clone {} &" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment