git clone提示error: while accessing https://的解决办法

此故障出现于CentOS6.x版本中,具体原因是因为系统中存在过时的curl和nss库的,从而导致了git clone失败。

解决办法:

yum update -y nss curl libcurl

修复前:

[root@100mai ~]# git clone https://github.com/philyuchkoff/openssl-1.1.1g-RPM-Builder.git
Initialized empty Git repository in /root/openssl-1.1.1g-RPM-Builder/.git/
error:  while accessing https://github.com/philyuchkoff/openssl-1.1.1g-RPM-Builder.git/info/refs

修复后:

[root@100mai ~]# git clone https://github.com/philyuchkoff/openssl-1.1.1g-RPM-Builder.git
Initialized empty Git repository in /root/openssl-1.1.1g-RPM-Builder/.git/
remote: Enumerating objects: 163, done.
remote: Counting objects: 100% (163/163), done.
remote: Compressing objects: 100% (156/156), done.
remote: Total 163 (delta 58), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (163/163), 4.83 MiB | 1.71 MiB/s, done.
Resolving deltas: 100% (58/58), done.
» 本文链接:git clone提示error: while accessing https://的解决办法
» 转载请注明来源:刺客博客
» 如果文章失效或者安装失败,请留言进行反馈。