命令行下载 GitHub repo 的工具

1,604 阅读1分钟

A little faster than git clone repo with bare history.

Install

$ npm install -g download-repo-cli

Usage

$ download-repo reactjs/redux

$ download-repo https://github.com/egoist/tooling

$ download-repo git@github.com:egoist/nwjs.git

$ download-repo https://github.com/egoist/testen.git

# advanced

# by tag
$ download-repo reactjs/redux -t v4.0.0

# by branch
$ download-repo reactjs/redux -b next

# custom location
$ download-repo reactjs/redux -o ~/my-redux-copy

Help

$ download-repo -h

CLI tool to download GitHub repo.

Usage:

  download-repo [repo|url]

  -o/--output     Output name, relative or absolute
  -t/--tag        Download by tag
  -b/--branch     Download by branch
  -v/--version    Print version
  -h/--help       Print help

Related

License

MIT © EGOIST