Skip to content

Instantly share code, notes, and snippets.

@lamida
Last active February 17, 2022 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lamida/5e5971a9fe3748474f9f2191184f4b3b to your computer and use it in GitHub Desktop.
Save lamida/5e5971a9fe3748474f9f2191184f4b3b to your computer and use it in GitHub Desktop.
# https://stackoverflow.com/questions/19576742/how-to-clone-all-repos-at-once-from-github
CNTX={users|orgs}; NAME={username|orgname}; PAGE=1
curl "https://api.github.com/$CNTX/$NAME/repos?page=$PAGE&per_page=100" |
grep -e 'git_url*' |
cut -d \" -f 4 |
xargs -L1 git clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment