Access private repositories in Go
Good article how to access a private repository via go get
.
TLDR:
For SSH access:
$ git config --global url."[email protected]:".insteadOf "https://gitlab.com/"
$ cat ~/.gitconfig
[url "[email protected]:"]
insteadOf = https://gitlab.com/