linux centos7 “git clone https://github.com/XXXXX” 报错解决方法


2021-08-04

1. 问题描述

在执行以下命令时出现错误“正克隆到 'XXXXX'... fatal: unable to access 'https://github.com/lagerspetz/XXXXX/': Encountered end of file”

git clone https://github.com/lagerspetz/linux-stuff

2. 解决方法

将 “https” 修改成 “git” ,成功执行命令

git clone git://github.com/lagerspetz/linux-stuff