go private package import and config

常常忘記要怎麼設定 官方FAQ: https://go.dev/doc/faq#git_https

設定 ~/.netrc

machine github.com login $USERNAME password $TOKEN

設定 ~/.gitconfig

[url "ssh://git@github.com/"]
    insteadOf = https://github.com/
comments powered by Disqus