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

@reinzor does it yet works?

@reinzor
Copy link
Author

reinzor commented Dec 24, 2019

Just ran it:

Cloning into 'navigation'...
remote: Enumerating objects: 13867, done.
remote: Total 13867 (delta 0), reused 0 (delta 0), pack-reused 13867
Receiving objects: 100% (13867/13867), 4.61 MiB | 5.07 MiB/s, done.
Resolving deltas: 100% (9061/9061), done.
Cloning into 'cb_base_navigation'...
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 542 (delta 3), reused 6 (delta 1), pack-reused 528
Receiving objects: 100% (542/542), 183.64 KiB | 758.00 KiB/s, done.
Resolving deltas: 100% (307/307), done.
Cloning into 'head_ref'...
remote: Enumerating objects: 34, done.
remote: Counting objects: 100% (34/34), done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 231 (delta 8), reused 18 (delta 2), pack-reused 197
Receiving objects: 100% (231/231), 40.01 KiB | 493.00 KiB/s, done.
Resolving deltas: 100% (96/96), done.
Cloning into 'ed'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 4942 (delta 2), reused 4 (delta 1), pack-reused 4933
Receiving objects: 100% (4942/4942), 1.21 MiB | 2.11 MiB/s, done.
Resolving deltas: 100% (3291/3291), done.
Cloning into 'ed_object_models'...
remote: Enumerating objects: 54, done.
remote: Counting objects: 100% (54/54), done.
remote: Compressing objects: 100% (42/42), done.

So still seems to work

@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