Git使用问题记录

问题一

fatal: unable to access ‘https://…git/’: SSL certificate problem: self signed certificate in certificate chain

打开Git Bash运行如下命令

export GIT_SSL_NO_VERIFY=true

git config --global http.sslVerify "false"

或者在windows的命令行中,进入到git命令所在的磁盘位置,执行下面的git命令

git config --global http.sslVerify false

问题二

fatal: unable to access 'https://github.com/xx/xx.git/': OpenSSL SSL_connect: Connection was reset in connection to github.com:443

Git bash 中依次输入

git config --global http.sslBackend "openssl"
git config --global http.sslCAInfo "C:\tools\PortableGit\mingw64\ssl\cert.pem"
posted @   npe0  阅读(16)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· C#/.NET/.NET Core技术前沿周刊 | 第 29 期(2025年3.1-3.9)
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
历史上的今天:
2017-08-15 Spring注解-TaskScheduler
2016-08-15 Spring MVC防止数据重复提交
2016-08-15 关于request.getsession(true|false)
点击右上角即可分享
微信分享提示