问题:国内使用git clone时出现速度较慢,甚至断开连接clone失败的问题。
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
解决方案:使用国内镜像,目前已知Github国内镜像网站有github.com.cnpmjs.org和git.sdut.me/
示例:
//clone 项目
git clone https://github.com/XiaoMing/samples-master
//使用镜像
git clone https://github.com.cnpmjs.org/XiaoMing/samples-master
//使用镜像
git clone https://git.sdut.me/XiaoMing/samples-master
速度70迈,心情自由自在~