Skip to content

Instantly share code, notes, and snippets.

@Pepeye
Last active May 16, 2018 16:48
Show Gist options
  • Save Pepeye/19111b8660c02a9809d9c06d270d1d27 to your computer and use it in GitHub Desktop.
Save Pepeye/19111b8660c02a9809d9c06d270d1d27 to your computer and use it in GitHub Desktop.

'Go Get' Private Repo from Bitbucket

source: stackoverflow

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/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment