- Use
git
instead ofhttps
protocol - Configure
GOPRIVATE
environment variable of the import location, e.g.changkun.de/x
$ git config --global url."git@github.com:".insteadOf "https://github.com/"
$ echo "export GOPRIVATE=changkun.de/x" >> ~/.zshrc
MIT © 2020-2021 Changkun Ou