本文共 946 字,大约阅读时间需要 3 分钟。
最近在使用 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/