fatal: unable to access 'https://github.com/xx

2019-03-14 19:15发布

When l try to use git push, an error reports:

Fatal: fatal: unable to access 'https://github.com/xxx': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

My git version is 2.16.2 for windows

It worked well before this day, and reinstalling git seems to not work.

Can anyone help me with that? Thanks in advance!

标签: git ssl github
2条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-03-14 19:54

After reinstalling Git did nothing, I found an issue on GitHub that helped me solve it.

In your terminal run this command first:

git config --global http.sslBackend "openssl"

Then this one:

git config --global http.sslCAInfo "C:\Program Files\Git\mingw64\ssl\cert.pem"

You may need to change your path depending on where you have it installed.

查看更多
Deceive 欺骗
3楼-- · 2019-03-14 19:58

If you are behind a proxy, try the following:

git config --global --add remote.origin.proxy ""
查看更多
登录 后发表回答