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