github

client_loop: send disconnect: Connection reset by peerB/s

客户端下载遇到报错

remote: Enumerating objects: 71, done.
remote: Counting objects: 100% (71/71), done.
remote: Compressing objects: 100% (51/51), done.
client_loop: send disconnect: Connection reset by peerB/s
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
 

这篇文章提到,是缓存区不够大导致。

https://blog.csdn.net/the_brave/article/details/104153130

解决办法:
当推送大量数据时(初始推送大型存储库,使用非常大的文件进行更改)可能需要 http.postBuffer 在 git 客户端 (而不是服务器)上设置更高的 设置 ;将 Git 缓冲区大小增加到 repo 的最大单个文件大小:

git config --global http.postBuffer 157286400
 

使用git bash完成设置后,git bash里运行

git.exe clone --progress -v "git@github.com:pentaho/pentaho-kettle.git" "E:\git\pentaho-kettle"

又遇报错
fatal: Could not read from remote repository.

$ git.exe clone --progress -v "git@github.com:pentaho/pentaho-kettle.git" "E:\git\pentaho-kettle"
Cloning into 'E:\git\pentaho-kettle'...
Connection reset by 13.250.177.223 port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
 

搜到这篇文章

https://blog.csdn.net/Leolu007/article/details/79129446

fatal: not a git repository (or any of the parent directories): .git

 

实验过程中,发现 git remote –v也报错

$ git remote -v
fatal: not a git repository (or any of the parent directories): .git

搜到这篇文章

https://blog.csdn.net/wenb1bai/article/details/89363588

使用git init初始化之后,git remote -v正常。

 

重新执行下载就OK了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值