Created
May 18, 2018 00:45
-
-
Save fjlopezs/ab31b32647e92966c314d088dd9f5540 to your computer and use it in GitHub Desktop.
Download All repisotories from your Organization
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
# Require jq, git, curl, private key and personal token | |
GITHUB_TOKEN=YOUR_PRIVATE_TOKEN see: https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/ | |
ORGANIZATION=YOUR_ORGANIZATION_NAME | |
curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/orgs/$ORGANIZATION/repos\?per_page\=500 | jq -r '.[].ssh_url' | xargs -n 1 git clone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment