我们常用的git clone https://XXX 下载大文件时,加上墙的问题。会出现中断,例如gitlab

 

git clone https://gitlab.com/xhang/gitlab.git

正克隆到 'gitlab'...

remote: Counting objects: 451995, done.

remote: Compressing objects: 100% (96627/96627), done.

fatal: The remote end hung up unexpectedlyB | 34.00 KiB/s

fatal: 过早的文件结束符(EOF)

fatal: index-pack failed

 

 

解决一:采用ssh方式

git clone git@gitlab.com:xhang/gitlab.git

 

解决二:加大https缓存(推荐)

git init
git config http.postBuffer 524288000

 

 

 

相关文章:

  • 2022-12-23
  • 2021-05-24
  • 2021-07-10
  • 2021-06-07
  • 2021-06-24
  • 2022-12-23
  • 2021-07-19
  • 2021-08-10
猜你喜欢
  • 2021-07-19
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
相关资源
相似解决方案