clone-it-all is a script for cloning all repositories from a specified GitHub user or organization. By default, it clones only non-forked repositories, but you can optionally include forked repositories with the --with-forks flag.
- Clone all repositories from a GitHub user or organization.
- Optionally include forked repositories with
--with-forks.
Important
This script requires the GitHub CLI (gh). Ensure it's installed and authenticated on your system (gh auth login).
-
Install GitHub CLI:
Follow the installation instructions for GitHub CLI to install
gh. -
Download and Give Execute Permissions:
You can download the script directly from the repository or use
curlto fetch it:sudo curl -L -o /usr/local/bin/clone-it-all https://raw.githubusercontent.com/inf1nite-lo0p/clone-it-all/main/clone-it-all.sh sudo chmod +x /usr/local/bin/clone-it-all
-
Verify Installation:
Check that the script is available globally:
clone-it-all --help
To clone all non-fork repositories from a specified GitHub user or organization:
clone-it-all <github-username-or-organization><github-username-or-organization>: The GitHub username or organization from which to clone repositories.
Clone all repositories from someusername into a folder named someusername in the current directory:
clone-it-all someusernameTo include forked repositories in the clone operation, use the --with-forks flag:
clone-it-all <github-username-or-organization> --with-forksTo specify a custom output folder, use the --output option:
clone-it-all <github-username-or-organization> --output /path/to/output-folderClone all repositories, including forks, from someusername into /path/to/output-folder:
clone-it-all someusername --with-forks --output /path/to/output-folder--with-forks: Include forked repositories in the cloning process. By default, forks are ignored.--output <output-folder>: Specify the output folder where repositories will be cloned. Defaults to a folder named after the GitHub username or organization in the current directory.--help: Display the help message and exit.