https://github.com/arbourd/git-get
Go gets your code
https://github.com/arbourd/git-get
get git go
Last synced: 4 months ago
JSON representation
Go gets your code
- Host: GitHub
- URL: https://github.com/arbourd/git-get
- Owner: arbourd
- License: mit
- Created: 2019-02-03T17:31:18.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-10-06T19:10:42.000Z (9 months ago)
- Last Synced: 2025-11-12T05:40:07.590Z (8 months ago)
- Topics: get, git, go
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-get
`git get` clones repositories to your `GETPATH` in the same fashion as `go get`.
## Usage
Get a repository to the default `GETPATH` `~/src`
```console
$ git get github.com/arbourd/git-get
~/src/github.com/arbourd/git-get
$ git get https://github.com/arbourd/git-get.git
~/src/github.com/arbourd/git-get
$ git get git@github.com:arbourd/git-get.git
~/src/github.com/arbourd/git-get
```
Set a custom `GETPATH` with `git config`.
```console
$ git config --global get.path "~/dev"
$ git get github.com/arbourd/git-get
~/dev/github.com/arbourd/git-get
```
Set a custom `GETPATH` with the environmental variable `$GETPATH`.
```console
$ export GETPATH=~/dev
$ git get github.com/arbourd/git-get
~/dev/github.com/arbourd/git-get
```
### Using SSH as the default
By default, when getting a repository without specifying a protocol (eg: github.com/arbourd/git-get) HTTPS will be used.
If you would prefer to use SSH or any other protocol, configure your [Git config](https://git-scm.com/docs/git-config#Documentation/git-config.txt-urlltbasegtinsteadOf) to redirect.
```console
$ git config --global url.ssh://git@github.com/.insteadOf https://github.com/
```
## Installation
Install with `brew`.
```console
$ brew install arbourd/tap/git-get
```
Install with `go install`.
```console
$ go install github.com/arbourd/git-get@latest
```