Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
#
# How this works:
# Curl -> Grabs the organization repos from the github api
# grep -> Filter to only clone_url's
# grep -> Select the url from that line
# xargs -> For each line, run git clone [line]
curl -s "https://api.github.com/orgs/${1}/repos?per_page=200" | grep clone_url | grep -oh "https.*git" | xargs -L1 git clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.