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了。