The remote end hung up unexpectedly
2023-9-9 出现在笔记本上,大概率是网络环境环境比较差
client_loop: send disconnect: Connection reset by peer
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
原因:
网络不行,可以配置git的最低速度和最低速度时间
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
配置好后,多克隆几次
client_loop: send disconnect: Connection reset by peeriB/s
当推送大量数据时(初始推送大型存储库,使用非常大的文件进行更改)可能需要 http.postBuffer 在 git 客户端 (而不是服务器)上设置更高的 设置 ;将 Git 缓冲区大小增加到 repo 的最大单个文件大小
然后采取措施2:
git config --global http.postBuffer 524288000
remote: fatal: did not receive expected object
常见错误信息
PS D:\CPS\MyProject\Projects_Personal\wxyibu_2024> git push --no-thin -f github master
Enumerating objects: 1125, done.
Counting objects: 100% (1125/1125), done.
Delta compression using up to 8 threads
Compressing objects: 100% (911/911), done.
Writing objects: 100% (1125/1125), 77.23 MiB | 2.14 MiB/s, done.
Total 1125 (delta 160), reused 1117 (delta 158)
remote: Resolving deltas: 100% (160/160), done.
remote: fatal: did not receive expected object f1b394fed22b3ab58433d3792bc1c7b787bc992a
error: remote unpack failed: index-pack failed
To github.com:mucpsing/wxyibu_2024.git
! [remote rejected] master -> master (failed)
error: failed to push some refs to 'git@github.com:mucpsing/wxyibu_2024.git'
错误原因:
- 文件太大,超过50mb容易暴毙
- 文件中存在敏感key之类,被github检测到了,但是没有打印出来