Github-读取边带数据包时意外断开连接

我有一个很有趣的问题。我尝试通过 bash 将一些项目发送到 repo,最近发送时出现问题。

Enumerating objects: 27, done. Counting objects: 100% (27/27), done. Delta compression using up to 16 threads Compressing objects: 100% (24/24), done. Writing objects: 100% (25/25), 187.79 KiB | 9.39 MiB/s, done. Total 25 (delta 1), reused 0 (delta 0), pack-reused 0 send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly

有趣的是,我可以提前 10 分钟发送它,没有任何问题。

我尝试获取新的 repo,创建新文件,重新安装 git,git config --global http.postBuffer 524288000还有更大的数字,还有 https.postBuffer 等等。也安装桌面版同样的问题进来。

我遇到的问题主要是 React 应用程序。

有人知道解决方案吗?会出什么问题?

回答

首先,检查您的网络连接稳定性。

如果网络连接没有问题,请尝试其他解决方案;它可能有效:

在 Linux 上

在执行 Git 命令之前,在命令行中执行以下操作:

export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1

在 Windows 上

在执行 Git 命令之前,在命令行中执行以下操作:

set GIT_TRACE_PACKET=1
set GIT_TRACE=1
set GIT_CURL_VERBOSE=1

此外:

git config --global core.compression 0
git clone --depth 1 <repo_URI>
# cd to your newly created directory
git fetch --unshallow 
git pull --all


以上是Github-读取边带数据包时意外断开连接的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>