git clone报错SSL证书问题

问题描述

D:\develop>git clone https://github.com/alibaba/nacos.git
Cloning into 'nacos'...
fatal: unable to access 'https://github.com/alibaba/nacos.git/': SSL certificate problem: unable to get local issuer certificate
D:\develop>

这个错误通常是由于Git无法验证GitHub的SSL证书所引起的
解决办法
配置Git证书验证:运行以下命令来禁用SSL证书验证,然后再次尝试克隆代码库:

git config --global http.sslVerify false
git clone https://github.com/alibaba/nacos.git

D:\develop>git clone https://github.com/alibaba/nacos.git
Cloning into ‘nacos’…
remote: Enumerating objects: 117873, done.
remote: Counting objects: 100% (17455/17455), done.
remote: Compressing objects: 100% (1768/1768), done.
remote: Total 117873 (delta 16010), reused 15903 (delta 15534),
pack-reused 100418 Receiving
objects: 100% (117873/117873), 51.63 MiB | 30.70 MiB/s, done.
Resolving deltas: 100% (49304/49304), done.
Updating files: 100% (2804/2804), done.
D:\develop\nacos>

  • 7
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
当使用git clone命令时,可能会出现各种报错。根据你提供的引用内容,我可以看到几个常见的错误和解决方法。 错误一:"fatal: unable to access 'https://github.com/nhn/raphael.git/': Failed connect to github.com:443; Connection timed out" 这个错误表示无法连接到GitHub服务器。可能的原因是网络连接问题或防火墙设置。为了解决这个问题,你可以尝试以下方法: - 检查你的网络连接,***可能存在防火墙或代理服务器的限制。请咨询你的网络管理员,以获取更多帮助。 错误二:"error: RPC failed; curl 28 OpenSSL SSL_read: Connection was reset, errno 10054fatal: error reading section header 'shallow-info'" 这个错误可能是由***或代理服务器,请确保配置正确。 - 可以尝试设置Git的缓冲区大小,使用命令:`git config http.postBuffer 524288000`,其中524288000是缓冲区的大小。 错误三:"remote: Repository not found." 这个错误表示无法找到指定的远程仓库。可能的原因是仓库不存在或URL地址错误。为了解决这个问题,你可以尝试以下方法: - 检查你输入的仓库URL是否正确,确保没有拼写错误。 - 确认该仓库存在于远程服务器上。 综上所述,当你在使用git clone命令时遇到报错,可以先检查网络连接,确保没有网络问题。如果问题仍然存在,可以尝试调整Git的配置或咨询网络管理员获取更多帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [git clone 出现错误及解决方案](https://blog.csdn.net/weixin_43299180/article/details/118390503)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [解决 github项目clone报错 Failed connect to github.com:443; Connection](https://download.csdn.net/download/weixin_38714641/14053810)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值