早上上班打开电脑,按照惯例更新一下代码,嗯?怎么更新不了了呢!换个项目试试,哎?!怎么还不行,还报错fatal: unable to access 'xxx.git/': SSL certificate problem: certificate has expired
当即就开始找解决方案,有网友说输入这行代码就好了:
git config –global http.sslVerify false,结果呢报了一个新的错误:fatal: not in a git directory,真让人头大!但!在第一次输入的时候有一行提示error: did you mean `--global` (with two dashes ?)
难道是要输入 -- ?试一试,还真的行,我的天!
解决方案:
git config --global http.sslVerify false