Skip to content

Simple Bash script to clone all repositories within a GitHub organization

Notifications You must be signed in to change notification settings

smoleyxd/GitHub-Organization-Clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

GitHub-Organization-Clone

This script allows you to mass-clone repositories from a GitHub organization.

Table of Contents

Introduction

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.

Usage

  1. Clone this repository to your local machine:

    git clone https://github.com/your-username/GitHub-Organization-Clone.git
  2. Navigate to the cloned directory:

    cd GitHub-Organization-Clone
  3. Make the script executable:

    chmod +x clone_repos.sh
  4. Create an ssh key

    ssh-keygen -t ed25519 <your_email>
    
  5. Update the script with your GitHub organization name, personal access token, and ssh key.

  6. Run the script:

    ./clone_repos.sh

    The script will clone repositories with the specified main branch from your GitHub organization.

Prerequisites

• Git installed on your machine.
• A GitHub personal access token with the repo scope.

About

Simple Bash script to clone all repositories within a GitHub organization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages