当我尝试使用时git push,错误报告:
致命:致命:无法访问' https://github.com/xxx':OpenSSL SSL_connect:SSL_ERROR_SYSCALL与github.com:443相关联
对于Windows,我的git版本是2.16.2
它在今天之前运作良好,重新安装git似乎不起作用.
任何人都可以帮助我吗?提前致谢!
小智 36
如果您在代理服务器后面,请尝试以下操作:
git config --global --add remote.origin.proxy ""
Run Code Online (Sandbox Code Playgroud)
Mir*_*sic 13
重新安装后,Git什么都没做,我在GitHub上发现了一个帮我解决问题的问题.
在终端中首先运行此命令:
git config --global http.sslBackend "openssl"
Run Code Online (Sandbox Code Playgroud)
然后这个:
git config --global http.sslCAInfo "C:\Program Files\Git\mingw64\ssl\cert.pem"
Run Code Online (Sandbox Code Playgroud)
您可能需要根据安装位置更改路径.
The*_*ace 10
如果您使用代理尝试运行并输入 inetcpl.cpl 然后连接然后 LAN 设置然后前进 现在您看到您的代理,请使用 http 一个。
然后打开 Git Bash 然后输入这个命令
$ git config --global http.proxy
Run Code Online (Sandbox Code Playgroud)
如果没有输出,则未设置 Git Bash 中的代理, 然后使用这些命令设置它并使用第一段中显示的代理和端口
$ git config --global http.proxy proxyaddress:port
Run Code Online (Sandbox Code Playgroud)
然后再次输入此命令
$ git config --global http.proxy
Run Code Online (Sandbox Code Playgroud)
你去吧,它已经设置好了
要在 Git Bash 上重置代理,只需输入此命令
$ git config --global --unset http.proxy
Run Code Online (Sandbox Code Playgroud)
我最近也遇到了这些问题,我作为新手在台式机上使用 psiphon vpn 也很难找到这个解决方案,很高兴我能提供帮助。:)
git config --global --add remote.origin.proxy "127.0.0.1:(proxy http port number)"
Run Code Online (Sandbox Code Playgroud)
英寸
添加图片 @afder cc的
有时,这可能只是因为您的系统无法连接到 GitHub,可能是因为您没有连接到互联网(或者连接质量很差)。
(这是真的 - 这个问题可以重现。只要断开你的 LAN/WiFi 然后执行git pull,你就会得到同样的错误)。
PS:这件事发生在我身上。有时问题是您的互联网连接而不是配置。
| 归档时间: |
|
| 查看次数: |
33030 次 |
| 最近记录: |