Skip to content

Instantly share code, notes, and snippets.

@germanny
Last active November 4, 2019 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save germanny/d4c136fde122f23572af9058cfb0b43f to your computer and use it in GitHub Desktop.
Save germanny/d4c136fde122f23572af9058cfb0b43f to your computer and use it in GitHub Desktop.
Git - Clone all repos in organization

On macOS for downloading all repos for an organization:

  1. $ brew install jq
  2. Create personal access token on github
  3. $ curl -s https://<your token>:@api.github.com/orgs/<your org>/repos\?per_page\=200 | jq ".[].ssh_url" | xargs -n 1 git clone --recursive

ref: https://gist.github.com/caniszczyk/3856584#gistcomment-2653802

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment