Git clone that clones into a common path. It was inspired by go get
and follows a similar folder structure.
$ brew install jwaldrip/utils/git-get
- Go
- GCC
- OpenSSL
- LibSSL2
- cmake
- pkg-config
$ git clone [email protected]:jwaldrip/git-get.git
$ cd git-get
$ make install
You must have either a set a $GITPATH
or $GOPATH
variable.
NOTE: using a $GOPATH
will also append a /src to the path.
bash:
$ echo "export GITPATH=$HOME/dev" > .bashprofile
zsh:
$ echo "export GITPATH=$HOME/dev" > .zshrc
$ git get [repo-url]
By default, if no host is specified, git-get will lookup repos by the provided path on github. You can use the following flags to override this:
--bitbucket
--github
--host {hostname}
-h {hostname}
By default git-get will either use the scheme passed, or default to https:, to
use SSH use the --ssh
or -S
flag.
$ git get [email protected]:jwaldrip/git-get
Cloning into '/Users/jwaldrip/dev/github.com/jwaldrip/git-get'...
remote: Counting objects: 13, done.
remote: s: 100% (11/11), done.11) /11)
Total 13 (delta 2), reused 13 (delta 2)
Recieving objects: 92% (12/13) objects...
Recieving deltas: 100% (0/0) objects...
Indexing objects: 100% (13/13) objects...
See CONTRIBUTING for details on how to contribute.