fatal: unable to access https

  |   Linux git

clone项目到本地的时候无法访问https,可以从网上找解决方法。

[root@localhost ~]# git clone https://github.com/certbot/certbot.git
正克隆到 'certbot'...
fatal: unable to access 'https://github.com/certbot/certbot.git/': Peer reports incompatible or unsupported protocol version.

以上命令出现报错的原因是无法访问https地址。

已经解决如下:

[root@localhost ~]# git config --global url.git://github.com/.insteadOf https://github.com/

参考地址:fatal: unable to access 'https://github.com #2288