git credential.helper而不是.netrc来获取go依赖项

git credential.helper而不是.netrc来获取go依赖项,go,nexus,goproxy,go-get,git-credential-manager,go-git,Go,Nexus,Goproxy,Go Get,Git Credential Manager,Go Git,要兑现依赖项,我使用(as)连接到私有网络之外的goproxy服务器(因为nexus无法直接从GitHub获取依赖项) nexus.some.repo.com:4443/repository/go nexus proxy➡️ nexus.some.repo.com:4443/repository/go proxy➡️ … 我使用.netrc文件连接到 我是否可以使用git-credential.helper而不是.netrc❓ 如果是如果您已经在使用netrc,您可以简单地将凭证帮助器

要兑现依赖项,我使用(as)连接到私有网络之外的
goproxy
服务器(因为
nexus
无法直接从
GitHub
获取依赖项)


nexus.some.repo.com:4443/repository/go nexus proxy➡️ nexus.some.repo.com:4443/repository/go proxy➡️


我使用
.netrc
文件连接到

我是否可以使用
git-credential.helper
而不是
.netrc


如果是如果您已经在使用netrc,您可以简单地将凭证帮助器配置为使用netrc

您可以下载并放置在您的路径中

然后:

git config --global credential.helper netrc

我可以使用
osxkeychain
(Mac)或
store
goget
?@kozmo是的,如@kozmo所示,你的意思是使用
git-config--global-credential.helper osxkeychain
和go-get还不够吗?别忘了它将使用您的令牌()和密码,而不是您的用户名和密码。
machine nexus.some.repo.com:4443 
login SOME_LOGIN 
password SOME_PASS 
protocol https
git config --global credential.helper netrc