Skip to content

Instantly share code, notes, and snippets.

@samuraitruong
Last active August 8, 2017 00:03
Show Gist options
  • Save samuraitruong/1641949aa27f66fcfbe10538394c1dfe to your computer and use it in GitHub Desktop.
Save samuraitruong/1641949aa27f66fcfbe10538394c1dfe to your computer and use it in GitHub Desktop.
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