Skip to content

Clone/Pull all your Github Repositories

License

Notifications You must be signed in to change notification settings

hobbyquaker/github-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-local

npm version dependencies Status Build Status XO code style License

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

Releases

No releases published

Packages

No packages published