How to set GOPRIVATE environment variable

后端 未结 2 1584
不思量自难忘°
不思量自难忘° 2020-12-12 17:21

I started working on a Go project and it uses some private modules from Github private repos and whenever I try to run go run main.go it gives me a

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-12 17:49

    Just a follow up on the usage of ssh, this is the command used to get it working:

    GitHub:

    git config --global url."git@github.com:".insteadOf "https://github.com/"
    

    Bitbucket:

    git config --global url."git@bitbucket.org:".insteadOf "https://bitbucket.org/"
    

提交回复
热议问题