最近在使用git拉取代码和提交代码时报错:

schannel: next InitializeSecurityContext failed: Unknown error 

在这里插入图片描述
查阅资料,导致的原因可能是使用代理导致了git的连接模式改变了。

解决方式:

打开cmd窗口,执行下面命令把URL 模式从HTTPS改为SSH即可:

git config --system http.sslbackend openssl

参考文章:
fatal: unable to access ‘https://github.com/xxx’: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐