go-loader-git

3.0.2 • Public • Published

go-loader-git

npm Travis Coveralls Vulnerabilities js-standard-style

Go loader for git repositories

Usage

$ npm install --global go go-loader-git
$ go git git@github.com:gocli/boilerplate-example.git

Options

$ go git <repository> [options] [destination]
  • repository — valid git link to a repository
  • destination — folder path to put loaded files (destination folder will be created if it doesn't exist)
  • options:
    • --no-install — do not install boilerplate after loading
    • --keep-git (-k) — do not remove .git/ directory after loading repository
    • --checkout <string> — branch, tag, commit or other link to checkout after repository is loaded
    • --depth <number> — truncate history by number of commits
    • --git <string> — path to Git binary

Examples

# install boilerplate from Bitbucket to ./sources/new-project
$ go git git@bitbucket.org:repository/path.git sources/new-project

# install boilerplate from GitHub to ./path
$ go git https://github.com/repository/path.git

License

MIT © Stanislav Termosa

Install

npm i go-loader-git@3.0.2

Version

3.0.2

License

MIT

Unpacked Size

8.21 kB

Total Files

10

Last publish

Collaborators

  • termosa