A wrapper of ghq and go.
go get github.com/pocke/get
$ get TYPE ADDRESS
get
supports 2 types.
get
supports 4 styles of address.
https://github.com/pocke/get
https://github.com/pocke/get.git
github.com/pocke/get.git
git@github.com:pocke/get.git
$ get go https://github.com/pocke/get
$ get ghq github.com/pocke/get.git
Get
supports -shallow
and -unshallow
options. They work with ghq
. Get
just ignores them with go
.
When -shallow
option is given, get
clones the specified repository shallowly.
When -unshallow
option is given, get
executes git fetch --unshallow
asynchronously.
They improves cloning speed. If you specify -shallow
and -unshallow
, you can clone repository faster, and get whole repository after a while.
For example:
$ get -shallow -unshallow ghq https://github.com/pocke/get
If you'd like to enable this feature by default, put a config file to ~/.config/get/args
with the below content.
-shallow -unshallow
These codes are licensed under CC0.