Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save emasantos/d994b1ee8398598fcd1c1b90550416f9 to your computer and use it in GitHub Desktop.
Save emasantos/d994b1ee8398598fcd1c1b90550416f9 to your computer and use it in GitHub Desktop.
Download All The Organization Repositories in GitHub With Windows
  1. Download the jq binary and add it to your path.

https://stedolan.github.io/jq/

  1. Access the following URL and save the returned JSON in a file called repositories.json.

https://api.github.com/orgs//repos?per_page=200

  1. After adding the jq.exe binary to your path run the command:

jq.exe .[].ssh_url repositories.json > repository_urls.txt

  1. Iterate all the lines in this file with bash command FOR /F %k in (repository_urls.txt) DO git clone %k.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment