Skip to content

Instantly share code, notes, and snippets.

@samuraitruong
Last active March 31, 2020 06:49
Show Gist options
  • Save samuraitruong/7aac9bac56a8d67976dfbe62b1524145 to your computer and use it in GitHub Desktop.
Save samuraitruong/7aac9bac56a8d67976dfbe62b1524145 to your computer and use it in GitHub Desktop.
TOKEN=[you git hub token]
ORG=[you ORG name]
curl -s https://$TOKEN:@api.github.com/orgs/$ORG/repos?per_page=200 | \
grep -ioE "\"ssh_url\": \"(.*)\"" | cut -d '"' -f4 |\
xargs -n 1 git clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment