Clone all github repos of an org
This is a script to clone all Github repos of an org with one command.
Download the cloneall
script and place it in an executabe path, like /usr/local/bin/
.
This script needs a few tools to be in place for it to work:
- curl
- jq
- git
- SSH auth keys configured at Github
First, it may be a good idea to create a directory for org and change into it:
$ mkdir <org>
$ cd <org>
Then, invoke the scipt by passing the org as the parameter:
$ cloneall <org>
This tool may work well for a handful of repos. If you have a whole lof of repos in your org, you'll have to consider the implications of Github's rate limiting. YMMV.