go-loader-git
v3.0.3
Published
Go loader for git repositories
Downloads
909
Maintainers
Readme
go-loader-git
Go loader for git repositories
Usage
$ npm install --global go go-loader-git
$ go git [email protected]:gocli/boilerplate-example.git
Shortcut
Go CLI has shortcut for this loader, so you don't need to write git
:
$ go [email protected]:gocli/boilerplate-example.git
Options
$ go git <repository> [destination] [options]
repository
— valid git link to a repositorydestination
— 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>
— git reference (tag, branch, etc) 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 [email protected]:repository/path.git sources/new-project
# install boilerplate from GitHub to ./path
$ go git https://github.com/repository/path.git
License
MIT © Stanislav Termosa