git config --global url."ssh://git@***".insteadof "https://****"
--
上面是替换地址,用ssh替换https
注意:
如果设置了代理,记得关闭golang的代理,unset GOPROXY
或者用
go env -w GOPRIVATE=****
其中*表示私有仓库的地址
git config --global url."ssh://git@***".insteadof "https://****"
--
上面是替换地址,用ssh替换https
注意:
如果设置了代理,记得关闭golang的代理,unset GOPROXY
或者用
go env -w GOPRIVATE=****
其中*表示私有仓库的地址