Go loader for git repositories
$ npm install --global go go-loader-git $ go git <repository> [destination] [--keep-git]
repository — is anything that can be processed by git clone.
-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.
# in /Users/gocli/ # ensures that /Users/gocli/sources/new-project/ exists and loads files in there $ go git firstname.lastname@example.org: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
MIT © Stanislav Termosa