‘Go Get’ Private Repo from Bitbucket

go get uses git internally. The following one liners will make git and consequently go get clone your package via SSH.

Github:

git config --global url."[email protected]:".insteadOf "https://github.com/"

BitBucket:

git config --global url."[email protected]:".insteadOf "https://bitbucket.org/"

Leave a Comment