我想克隆一个Git存储库。在工作中,我们使用具有身份验证的代理。
我执行的设置代理设置的命令:
git config --global http.proxy http://username:password@proxy-link.nl:port-number
git config --global https.proxy http://username:password@proxy-link.nl:port-number但这不会有帮助,因为我得到了错误:Unable to access 'https://github.com/...': Invalid file descriptor
当我更改代理设置使我不必使用我的身份验证时,它就会工作。比如:
git config --global http.proxy http://proxy-link.nl:other-port-number
git config --global https.proxy http://proxy-link.nl:other-port-number有人知道如何使用代理进行身份验证吗?
发布于 2022-05-12 11:28:41
一个月前,我通过添加proxyAuthMethod进行了修正,如下所示:
git config --global http.proxyAuthMethod 'basic'和git config --global https.proxyAuthMethod 'basic'
https://stackoverflow.com/questions/71662646
复制相似问题