Skip to content

Instantly share code, notes, and snippets.

@ghaake
Created April 29, 2021 08:58
Show Gist options
  • Save ghaake/e353cfe187fcdafa8fabffc14bd7afff to your computer and use it in GitHub Desktop.
Save ghaake/e353cfe187fcdafa8fabffc14bd7afff to your computer and use it in GitHub Desktop.
Clone All Repositorys from an User or Organisation
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
@ghaake
Copy link
Author

ghaake commented Apr 29, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment