Skip to content

Instantly share code, notes, and snippets.

@reinzor
Created December 8, 2017 19:10
Show Gist options
  • Save reinzor/bb5c82fd1767efbc2609995edb54a900 to your computer and use it in GitHub Desktop.
Save reinzor/bb5c82fd1767efbc2609995edb54a900 to your computer and use it in GitHub Desktop.
Download github organization
# Replace the organization and num pages ,,
ORGANIZATION=tue-robotics && \
NUM_PAGES=20 && \
for i in $(seq 1 $NUM_PAGES); do for i in `curl -s https://api.github.com/orgs/$ORGANIZATION/repos?page=$i |grep html_url|awk 'NR%2 == 0'|cut -d ':' -f 2-3|tr -d '",'`; do git clone $i.git; done; done
@danimesq
Copy link

It needs a API key or have any dependency?

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