0.0.4 • Published 7 years ago
git-bak v0.0.4
git-bak
Easy way to backup your repos
Install
$ yarn global add git-bak
Usage
$ git-bak <username> [options]
# or use alias `gbk`
# example, backup all your repos
$ git-bak zcong1993 --dest bakfolder --all
Input
username
type: string
default: the git username in your git global config
the github username you want to backup
Options
--dest
type: string, required
default: null
the folder you want to backup repos to
--all
type: bool
default: false
if backup all repos of the user
--skip-fork
type: bool
default: false
if skip the repos forked from other
--page
type: number
default: 2
the page arg for github api
--per-page
type: number
default: 1
the per_page arg for github api
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
git-bak © zcong1993, Released under the MIT License. Authored and maintained by zcong1993 with help from contributors (list).
github.com/zcong1993 · GitHub @zcong1993