Created
June 7, 2016 21:13
-
-
Save wellsie/e286c8ed81189bb2cd6d5d16d9b3d17c 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