To make go get github.com/user/repo
use ssh instead of https run this line:
git config --global --add url."[email protected]:".insteadOf "https://github.com/"
It will add a section to your ~/.gitconfig
file use ssh instead of https when
you run go get ...
, allowing you to use your ssh key to authenticate to e.g. Github and access private repos.