git config --global url."[email protected]:".insteadOf "https://github.com/"
cat ~/.gitconfig
[url "[email protected]:"]
insteadOf = https://github.com/
go get github.com/private/repo
This depends on the host.
vim ~/.netrc
machine gitlab.com login [email protected] password jonoe-yoyoyoyoyo