Last active
June 15, 2018 19:05
-
-
Save bmacauley/a022ef7d0358a36cf47a9955f5230731 to your computer and use it in GitHub Desktop.
Clone github enterprise org 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
# export GITHUB_URL=<ghe url>;export GITHUB_ORG=<github org>;export GITHUB_TOKEN=<github token>;curl -s https://$GITHUB_TOKEN@$GITHUB_URL/api/v3/orgs/$GITHUB_ORG/repos | jq '.[].ssh_url' | xargs -n 1 git clone | |
curl -s https://$GITHUB_TOKEN@$GITHUB_URL/api/v3/orgs/$GITHUB_ORG/repos | jq '.[].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