如何解决错误“远程端意外挂起致命:sha1文件'<stdout>'写入错误:管道损坏错误”?

Pra*_*nav 4 github

在将文件推送到 github 时,我收到上述错误。详细错误如下:

Connection reset by 13.234.176.102 port 22
fatal: The remote end hung up unexpectedly
fatal: sha1 file '<stdout>' write error: Broken pipe
error: failed to push some refs to 'Github URL'
Run Code Online (Sandbox Code Playgroud)

是文件大小问题还是文件已损坏?

小智 5

我今天也遇到同样的错误

在此输入图像描述

我用谷歌搜索这个问题并找到以下评论:

https://help.github.com/articles/working-with-large-files/

If you attempt to add or update a file that is larger than 50 MB, you will receive a warning from Git. The changes will still successfully push to your repository, but you can consider removing the commit to minimize performance impact.
Run Code Online (Sandbox Code Playgroud)

所以我使用以下命令来调整缓冲区大小,它有效

git config http.postBuffer 52428800

在此输入图像描述