我今天在执行 git push 命令时收到此错误,这是第一次出现此错误,我已经使用 github 几个月了!
$ git push -u origin add_scope_to_delay_system
error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://github.com/jhx/(repository name goes here).git/info/refs
fatal: HTTP request failed
我尝试使用此解决方案https://groups.google.com/forum/#!msg/gitlabhq/6OHYFpsJQaM/SI8-XdxY70EJ但它不起作用。解决方案是添加
[http]
sslVerify = false
[https]
verify = false
到 .gitconfig
更新
这个问题自行消失了,不幸的是我不知道是什么开始或结束。