Skip to content

Effortlessly automate and organize GitHub repository cloning with this advanced script. Efficiently manage personal and organizational projects, with selective exclusion for streamlined project setup.

License

Notifications You must be signed in to change notification settings

0xjesus/git-cloner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README.md

# GitHub Repository Cloning Script

This script automates the task of cloning all your personal GitHub repositories and those from your organizations, except specific ones you choose to exclude. It organizes them neatly into separate folders for each organization, simplifying the management of your GitHub projects.

## Features
- **Automated Cloning**: Clone all your personal and organizational repositories with a single command.
- **Organized Structure**: Automatically creates and organizes repositories in separate directories based on organization names.
- **Selective Cloning**: Excludes specific organizations, such as 'venveo', from the cloning process.

## Prerequisites
- Bash shell (Unix/Linux/Mac)
- `curl` and `jq` command-line tools
- GitHub Personal Access Token stored in a `.env` file

## Setup
1. Create a `.env` file in the same directory as the script with the following content:

GITHUB_TOKEN=your_github_token GITHUB_USER=your_github_username EXCLUDED_ORG=excluded_organization

2. Ensure the script is executable:
```bash
chmod  x cloner.sh

Usage

Run the script in your terminal:

./cloner.sh

Contributing

Contributions to improve this script are welcome. Please feel free to fork, modify, and make pull requests.

License

This project is open-sourced under the MIT License. See the LICENSE file for more details.

About

Effortlessly automate and organize GitHub repository cloning with this advanced script. Efficiently manage personal and organizational projects, with selective exclusion for streamlined project setup.

Topics

Resources

License

Stars

Watchers

Forks

Languages