A simple plugin for git which allows cloning repos from any directory into their directory based on how gopath works.
All source cloned with git get
will be installed in $GOPATH/src/...
.
What things you need to install the software and how to install them:
git
go
dep
You will need to have go installed and setup with $GOPATH
. Your
$GOPATH/bin
should be in your path.
Follow these steps to get the git get
command working.
Install the git-get command into $GOPATH/bin
.
go get github.com/brentnd/git-get
As a git plugin, the git-get command is run with:
git get [email protected]:brentnd/git-get.git # ssh
git get https://github.com/brentnd/git-get.git # https
git get github.com/brentnd/git-get # go package style
To clone a private repo, be sure your SSH key is added to the authentication agent. In most cases done with:
ssh-add [key-file]
- go-git - go-git library
This project is licensed under the MIT License - see the LICENSE file for details