A simple command line tool to clone all repos of a given organization.
I needed to do that so I can
grep all repos for some stuff. GitHub search
wasn't powerful enough to do what I needed, so, here it is.
brew install caarlos0/tap/clone-org
NAME: clone-org - Clone all repos of a github organization USAGE: clone-org [global options] command [command options] [arguments...] VERSION: master COMMANDS: help, h Shows a list of commands or help for one command GLOBAL OPTIONS: --org value, -o value --token value, -t value [$GITHUB_TOKEN] --destination value, -d value --help, -h show help --version, -v print the version
- if no destination is provided, the clone will be made in
git clone --depth 1will be performed, meaning that only the last commit of the default branch will be available. On future versions this may be configurable.