Git push failing HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error

Git push failing HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error

我刚刚为我的 windows 机器设置了 git 位桶。

Git pull 正常工作,而 git push 失败并出现以下错误。

$ git push
Counting objects: 10, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 174.03 KiB | 0 bytes/s, done.
Total 10 (delta 6), reused 0 (delta 0)
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

任何帮助都非常有用。

谢谢

将 Git 缓冲区大小增加到您的存储库的最大单个文件大小:

git config --global http.postBuffer 157286400

这件事发生在我身上是因为我有一个 no space left on device 错误...我的服务器硬盘驱动器 full 并且可以不写入任何文件!

我知道这是一个老问题,但之前的建议对我不起作用(我从 git fetch 得到了同样的错误)。对我有用的是:

git gc
git fsck