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"
作者:null-npe 出处:https://www.cnblogs.com/npe 由于作者个人水平有限,如果文中有什么错误,欢迎指出。以免更多的人被误导。 |