An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

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