https://github.com/lgraubner/github-clone-all
Clone all of your Github repositories, including private repositories.
https://github.com/lgraubner/github-clone-all
backup clone git github
Last synced: 5 months ago
JSON representation
Clone all of your Github repositories, including private repositories.
- Host: GitHub
- URL: https://github.com/lgraubner/github-clone-all
- Owner: lgraubner
- License: mit
- Created: 2017-11-26T11:50:30.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-13T00:56:22.000Z (almost 4 years ago)
- Last Synced: 2025-04-02T01:42:38.080Z (10 months ago)
- Topics: backup, clone, git, github
- Language: JavaScript
- Homepage:
- Size: 164 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-clone-all
[](https://www.npmjs.com/package/github-clone-all)
Clones all of your Github repositories, including private repositories. Currently limited to 100 repositories (max for one request), feel free to send a PR to support more.
## Table of contents
- [Install](#install)
- [Usage](#usage)
- [Options](#options)
- [License](#license)
## Install
This module is available on [npm](https://www.npmjs.com/).
```BASH
$ npm install -g github-clone-all
```
This package requires `curl` to run on your system!
## Usage
An access token and an username are required. All repositories will be cloned into the current working directory if not specified otherwise.
```BASH
$ github-clone-all --access-token YOUR_ACCESS_TOKEN --username USERNAME
```
## Options
```BASH
Usage: github-clone-all [options] [destination]
Options:
--help output usage information
--version output the version number
--access-token personal github access token (required)
--username Github username (required)
--ignore-forks ignore forked repositories
--ignore comma seperated list of repositories to ignore
--max-concurrency max concurrent clone processes (default: 5)
--overwrite overwrite previously downloaded repositories
```
### access-token
Your Github personal access token. Can be acquired in your [Github settings](https://github.com/settings/tokens). You need at least the `repo` scope to use it with this package.
### username
Your Github username.
### ignore-forks
Ignore all forks.
### ignore
Comma seperated list of repositories to ignore.
### max-concurrency
By default up to five repositories will be cloned concurrently. Can be adjusted it with this option.
### overwrite
Overwrite existing repository archives.
## License
[MIT](https://github.com/lgraubner/github-clone-all/blob/master/LICENSE) © [Lars Graubner](https://larsgraubner.com)