博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【经验分享】git clone 时出现三种报错及解决方案
阅读量:4156 次
发布时间:2019-05-25

本文共 946 字,大约阅读时间需要 3 分钟。

【经验分享】git clone 时出现三种报错及解决方案

  最近在使用 git 进行 git clone 时,经常报错,经过查询找到了一种解决方案,分享给大家。

文章目录


一、第一种报错

  执行git clone提示 “fatal: The remote end hung up unexpectedly”

[cos@VM-0-14-centos git_cos]$ git clone https://github.com/cos/Exercise.gitCloning into 'Exercise'...error: RPC failed; result=35, HTTP code = 0fatal: The remote end hung up unexpectedly

二、第二种报错

  执行git clone提示 “fatal: unable to access 目标地址: SSL connect error”

[cos@VM-0-14-centos git_cos]$ git clone https://github.com/cos/Exercise.gitCloning into 'scripts'...fatal: unable to access 'https://github.com/open-falcon/scripts.git/': SSL connect error

三、第三种报错

  执行git clone提示 “fatal: unable to access 目标地址: Encountered end of file”

[cos@VM-0-14-centos linux]$ git clone https://github.com/cos/Exercise.gitCloning into 'Exercise'...fatal: unable to access 'https://github.com/cos/Exercise.git/': Encountered end of file

四、解决方案

  将目标地址的 https 改为 git 即可。连不上 github 的原因太多了,防火墙、ip被屏蔽、国际线路不稳定等各种因素。

在这里插入图片描述


转载地址:http://gnwxi.baihongyu.com/

你可能感兴趣的文章
实验5-4 循环的嵌套
查看>>
实验5-5 循环的合并
查看>>
实验5-6 do-while循环结构
查看>>
实验5-7 程序调试入门
查看>>
实验5-8 综合练习
查看>>
第2章实验补充C语言中如何计算补码
查看>>
深入入门正则表达式(java) - 命名捕获
查看>>
使用bash解析xml
查看>>
android系统提供的常用命令行工具
查看>>
【Python基础1】变量和字符串定义
查看>>
【Python基础2】python字符串方法及格式设置
查看>>
【Python】random生成随机数
查看>>
【Python基础3】数字类型与常用运算
查看>>
【Python基础4】for循环、while循环与if分支
查看>>
【Python基础6】格式化字符串
查看>>
【Python基础7】字典
查看>>
【Python基础8】函数参数
查看>>
【Python基础9】浅谈深浅拷贝及变量赋值
查看>>
Jenkins定制一个具有筛选功能的列表视图
查看>>
【Python基础10】探索模块
查看>>