Git push - 致命:写入错误:文件描述符错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35911805/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 11:51:16  来源:igfitidea点击:

Git push - fatal: write error: Bad file descriptor

gitpush

提问by Carl Johnston

I'm new to Git, so please forgive me if this is a stupid question.

我是 Git 的新手,所以如果这是一个愚蠢的问题,请原谅我。

On my initial push to GitHub, using git push origin master

在我最初推送到 GitHub 时,使用 git push origin master

I'm getting the following error(s):

我收到以下错误:

Counting objects: 1499, done. Delta compression using up to 16 threads.
Compressing objects: 100% (1455/1455), done. 
error: pack-objects died of signal 923 MiB | 9.10 MiB/s    fatal:
The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly
fatal: write error: Bad file descriptor

Am I missing something?

我错过了什么吗?

回答by Deb

When I got this same error, the following command fixed this issue git config --global pack.windowMemory "32m".

当我遇到同样的错误时,以下命令修复了这个问题 git config --global pack.windowMemory "32m"

回答by Aamir

I was getting same error few days back what worked for me was that default file post size for Git has been exceeded.So navigate to repo and run this command to increase the buffer to 500MB after navigating to the repository git config http.postBuffer 524288000

几天前我遇到了同样的错误,对我有用的是已经超过了 Git 的默认文件发布大小。所以导航到 repo 并运行此命令以在导航到存储库后将缓冲区增加到 500MB git config http.postBuffer 524288000