git push报错:fatal: unable to access ‘https://XXXX.git/‘: Peer‘s Certificate issuer is not recognized.

推镜像的时候,git push报错:fatal: unable to access 'https://XXXX.git/': Peer's Certificate issuer is not recognized.

 然后去服务器克隆,仍然报错

解决:

git对https的仓库不知道为什么,总有问题,据说是系统证书的问题,跳过去就行

git config --global http.sslVerify false

 

 

克隆成功了,这边git push也成功了