Clone repositories like go get
.
Note: git-get
is currently supported on MacOS & Linux.
If you've golang
installed, run the following commands:
$ go get github.com/satyarohith/git-get
$ go install github.com/satyarohith/git-get
If not, you can download the binaries from here.
$ git get <username>/<repository_name>
Example:
$ git get satyarohith/shark # Clones to `~/c/github.com/satyarohith/shark`
$ git get <repository_name> # Clones to `~/c/github.com/<username>/<repository_name>`
git-get
reads your GitHub username from .gitconfig
file.
Append the below to your .gitconfig
. Commonly found at ~/.gitconfig
.
[github]
user = <your_username>
$ git get https://gitlab.com/satyarohith/example # Clones to ~/c/github.com/satyarohith/example
MIT © Satya Rohith