https://github.com/hobbyquaker/github-local
Clone/Pull all your Github Repositories
https://github.com/hobbyquaker/github-local
clone github local pull repositories sync
Last synced: 7 months ago
JSON representation
Clone/Pull all your Github Repositories
- Host: GitHub
- URL: https://github.com/hobbyquaker/github-local
- Owner: hobbyquaker
- License: mit
- Created: 2018-08-27T19:39:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-28T09:29:59.000Z (over 7 years ago)
- Last Synced: 2025-03-06T11:19:59.373Z (11 months ago)
- Topics: clone, github, local, pull, repositories, sync
- Language: JavaScript
- Size: 49.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-local
[](http://badge.fury.io/js/github-local)
[](https://david-dm.org/hobbyquaker/github-local)
[](https://travis-ci.org/hobbyquaker/github-local)
[](https://github.com/sindresorhus/xo)
[![License][mit-badge]][mit-url]
> Clone/Pull all your Github Repositories
I'm using this to keep a local copy of all my Repositories and all Repositories I'm watching and I've starred.
## Install
Requirements: Node.js >= 6, git in PATH.
`$ npm install -g github-local`
## Usage
Create a directory e.g. `/srv/github` and run `github-local --user=YourGithubUser --path=/srv/github`. You are not
forced to use a Github API Token, but if you don't you will probably hit the API rate limit (depending on the number
of repos you have), so it's strongly advised to use one.
### Command Line Options
```
github-local [args]
Options:
--version Show version number [boolean]
--user, -u Github User [required]
--token, -t Github API Token
--path, -p Path to store cloned Repos [required]
--starred, -s Include starred Repos [boolean]
--watched, -w Include watched Repos [boolean]
--help Show help [boolean]
```
### Environment Variables
All Command Line Options can be supplied by environment variables. Prefix them with `GL_` and use uppercase, e.g.
`GL_TOKEN=1234567890abcdef`.
## License
MIT © [Sebastian Raff](https://github.com/hobbyquaker)
[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat
[mit-url]: LICENSE