我公司笔记本电脑上的 git 代理有问题。
我在系统变量中添加了环境变量 HTTP_PROXY、HTTPS_PROXY 和 FTP_PROXY。
重新启动后,我的 git 可以正常工作几分钟,一切都很好 - 推动工作,我可以拉动一切。
但在笔记本电脑工作几分钟后,我遇到了错误:
Push failed unable to access 'https://gitlab.****.com/**/**/': Proxy CONNECT aborted
我不知道该怎么办我已经尝试将 git 配置变量取消设置为 http.proxy、https.proxy 但它没有任何改变。
当我遇到这个错误时,我会重新启动计算机,我可以推或拉,但错误消息没有出现[但只有几分钟!]。
系统:Windows VPN:开启
Git 重新安装没有帮助。
该错误发生在 cmd 和 PyCharm 中。
Git user.name 和 user.email 是正确的。
我还尝试将 http.proxy 和 https.proxy 用作 http://login:pwd@server:port,但它没有任何改变。
请帮助我,谢谢和最好的问候。
答案 0 :(得分:0)
解决方案:
如果不起作用,请重新安装 Windows 并重试。