Skip to content

Instantly share code, notes, and snippets.

@bmacauley
Last active June 15, 2018 19:05
Show Gist options
  • Save bmacauley/a022ef7d0358a36cf47a9955f5230731 to your computer and use it in GitHub Desktop.
Save bmacauley/a022ef7d0358a36cf47a9955f5230731 to your computer and use it in GitHub Desktop.
Clone github enterprise org repos
# 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