Last active
August 8, 2017 00:03
-
-
Save samuraitruong/1641949aa27f66fcfbe10538394c1dfe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ORG=PRIVATE_ORG; PAGE=1; | |
curl "https://api.github.com/orgs/$ORG$/repos?page=1&per_page=100" | | |
grep -e 'ssh_url*' | | |
cut -d \" -f 4 | | |
xargs -L1 git clone | |
USER=USERNAME; PAGE=1; | |
curl "https://api.github.com/users/$USER$/repos?page=1&per_page=100" | | |
grep -e 'ssh_url*' | | |
cut -d \" -f 4 | | |
xargs -L1 git clone | |
if you are using token access - -u <token>:x-oauth-basic. If you already setup SSH. that will file | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment