微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

git credential.helper而不是.netrc以获取依赖关系

如何解决git credential.helper而不是.netrc以获取依赖关系

要兑现依赖项,我使用(作为)连接到goproxy服务器(因为nexus无法直接从{ {1}})在专用网络之外。


nexus.some.repo.com:4443/存储库/ go-nexus-proxy➡️gonexus.dev nexus.some.repo.com:4443/repository/go-proxy➡️proxy.golang.org ...


GitHub

enter image description here

我使用goproxy="nexus.some.repo.com:4443/repository/go-proxy,nexus.some.repo.com:4443/repository/go-nexus-proxy" 文件连接到

.netrc

我可以使用machine nexus.some.repo.com:4443 login SOME_LOGIN password SOME_PASS protocol https 代替git credential.helper

如果??如何配置.netrc

解决方法

如果您已经在使用netrc,则只需将凭据帮助程序配置为使用netrc

您可以下载并放入PATH git-credential-netrc.perl

然后:

git config --global credential.helper netrc

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。