git通过git clone下载github上的资源到机器上,结果出现如题所示的错误。
- [root@server data]# git clone https://github.com/pingcap/tidb-docker-compose.git
- Cloning into 'tidb-docker-compose'...
- fatal: unable to access 'https://github.com/pingcap/tidb-docker-compose.git/': Peer reports incompatible or unsupported protocol version.
- [root@server data]# git --version
- git version 1.8.3.1
查找原因是curl,nss版本低的原因,解决办法就是更新nss,curl。
- [root@server data]# yum update nss curl
再次尝试克隆成功
- [root@server data]# git clone https://github.com/pingcap/tidb-docker-compose.git
- Cloning into 'tidb-docker-compose'...
- remote: Counting objects: 156, done.
- remote: Compressing objects: 100% (16/16), done.
- remote: Total 156 (delta 4), reused 9 (delta 0), pack-reused 135
- Receiving objects: 100% (156/156), 60.06 KiB | 0 bytes/s, done.
- Resolving deltas: 100% (58/58), done.