https://github.com/richinfante/github-clone-all
Clone all your github repos for backups & local development.
https://github.com/richinfante/github-clone-all
bash git github
Last synced: 30 days ago
JSON representation
Clone all your github repos for backups & local development.
- Host: GitHub
- URL: https://github.com/richinfante/github-clone-all
- Owner: richinfante
- License: mit
- Created: 2019-11-14T01:22:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-14T01:27:49.000Z (over 5 years ago)
- Last Synced: 2025-01-22T12:12:39.918Z (3 months ago)
- Topics: bash, git, github
- Language: Shell
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - richinfante/github-clone-all - Clone all your github repos for backups & local development. (Shell)
README
# github-clone-all
This bash script clones all the git repos listed in your github account.
## Directory Structure
We clone each repo into a subdirectory named after the account / organization that owns the repo. If the directory doesn't exist, it'll be created.
For example, the repo: [https://github.com/microsoft/vscode.git](https://github.com/microsoft/vscode.git) will be cloned into a directory named `microsoft/vscode`
## Environment Variables
If you don't define these variables (nice for automation on a cron job), you'll be prompted for them.
- `GITHUB_USER` - your github username
- `GITHUB_TOKEN` - your github password, or token if you have 2fa enabled.## Dependencies
- `jq` - for json processing
- `curl` - for web