Go loader for git repositories
Usage
$ npm install --global go go-loader-git
$ go git <repository> [destination] [--keep-git]
repository
— is anything that can be processed by git clone.
--keep-git
(-k
) — do not remove .git directory after loading repository.
destination
— if it is specified, it will be created in case it is not exists yet, and loaded files will be stored in there. If path is not specified, it is extracted from the repository name.
Examples
# in /Users/gocli/
# ensures that /Users/gocli/sources/new-project/ exists and loads files in there
$ go git git@github.com:repository/path.git sources/new-project
# ensures that /Users/gocli/path/ exists and loads files in there
$ go git https://github.com/repository/path.git
License
MIT © Stanislav Termosa