Skip to content

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.

Notifications You must be signed in to change notification settings

williamchanrico/go-get-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages