Created
June 7, 2016 21:13
-
-
Save wellsie/300de287d5e3257f53cb9cc0203ecbb0 to your computer and use it in GitHub Desktop.
clone all organization github repos
This file contains 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
#/bin/bash -eux | |
# check for jq | |
jq --version | |
ORG="<organization" | |
USER="<user>" | |
TOKEN="<token>" | |
curl -s https://api.github.com/orgs/${ORG}/repos\?per_page\=200 -u ${USER}:${TOKEN} \ | |
| jq '.[].ssh_url' \ | |
| xargs -L1 git clone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment