Have this in your ~/.gitconfig
:
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
Make sure you have these environment variables set:
# ~/.profile
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
# OpsBeacon
export PATH=$PATH:/usr/local/go/bin
export GO_INSTALL_DIR=/usr/local/go
export GOROOT=$GO_INSTALL_DIR
export GOPATH=$HOME/go
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
export GO111MODULE="on"
export GOSUMDB=off
# All GitHub users and orgs that have private repos that you need go here:
export GOPRIVATE="github.com/zerotohero-dev,github.com/v0lkan"