Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/williamchanrico/go-get-ssh

Wrapper for "go get -v -u" using ssh git clone. Useful if you setup github 2FA and don't want to deal with global git config to make "go get" works.
https://github.com/williamchanrico/go-get-ssh

2fa-security bash-script git go

Last synced: 29 days ago
JSON representation

Wrapper for "go get -v -u" using ssh git clone. Useful if you setup github 2FA and don't want to deal with global git config to make "go get" works.

Awesome Lists containing this project

README

        

# go-get-ssh
Wrapper for "go get -v -u" using ssh git clone

## What it does
- The script will `git clone` (using your configured `ssh` credential) the repository into your workspace with the correct `go` structure (`$GOPATH/src/domain.com/repo_owner/repo_name/`).
- And it will run `go get -u -v` in the cloned repository.
- Done. It does everything you need to start building/developing that repo in one command.

## Usage
```
$ go-get-ssh
usage: go-get-ssh IMPORT_PATH
example:
go-get-ssh github.com/tokopedia/gosample

Will be imported to:
$GOPATH/src/github.com/tokopedia/gosample
```