Go get bitbucket repository via ssh
September 30, 2015
By default, Go get attempts to “get” repositories via https. Since our private repository was hosted on bitbucket, we needed to find a way around. Below is the quick and simple solution.
You’re probably having this issue if you’re trying to use “go get” and being prompted to enter: “Username for ‘https://bitbucket.org’:”
Command
Explanation
The command is fairly straight forward, but basically you’re telling git to access the repository via ssh instead of https url.