https://github.com/0xjesus/git-cloner
Effortlessly automate and organize GitHub repository cloning with this advanced script. Efficiently manage personal and organizational projects, with selective exclusion for streamlined project setup.
https://github.com/0xjesus/git-cloner
automation bash bash-script code-management dev-tools git git-automation github repository-cloning repository-management scripting
Last synced: 2 months ago
JSON representation
Effortlessly automate and organize GitHub repository cloning with this advanced script. Efficiently manage personal and organizational projects, with selective exclusion for streamlined project setup.
- Host: GitHub
- URL: https://github.com/0xjesus/git-cloner
- Owner: 0xjesus
- License: mit
- Created: 2024-01-29T18:41:33.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-29T19:55:55.000Z (about 2 years ago)
- Last Synced: 2024-03-05T10:27:33.779Z (about 2 years ago)
- Topics: automation, bash, bash-script, code-management, dev-tools, git, git-automation, github, repository-cloning, repository-management, scripting
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
### README.md
```markdown
# 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:
```bash
./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.