This script allows you to mass-clone repositories from a GitHub organization.
When working with a GitHub organization, you may need to clone multiple repositories at once. This script simplifies the process by cloning repositories that have a specified main branch from the organization.
-
Clone this repository to your local machine:
git clone https://github.com/your-username/GitHub-Organization-Clone.git
-
Navigate to the cloned directory:
cd GitHub-Organization-Clone
-
Make the script executable:
chmod +x clone_repos.sh
-
Create an ssh key
ssh-keygen -t ed25519 <your_email>
-
Update the script with your GitHub organization name, personal access token, and ssh key.
-
Run the script:
./clone_repos.sh
The script will clone repositories with the specified main branch from your GitHub organization.
• Git installed on your machine.
• A GitHub personal access token with the repo scope.