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 @ 2023-08-15 12:32  npe0  阅读(11)  评论(0编辑  收藏  举报