Git推送失败

icomxhvb  于 2023-09-29  发布在  Git
关注(0)|答案(2)|浏览(177)

我正在尝试推送到git,收到此错误消息

Enumerating objects: 57, done.
Counting objects: 100% (56/56), done.
Delta compression using up to 8 threads
Compressing objects: 100% (40/40), done.
error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (41/41), 185.34 MiB | 1.51 MiB/s, done.
Total 41 (delta 13), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date

我已经试过了:

git config http.postBuffer 524288000

但这导致了一个不同但相似的信息:

Enumerating objects: 57, done.
Counting objects: 100% (56/56), done.
Delta compression using up to 8 threads
Compressing objects: 100% (40/40), done.
Writing objects: 100% (41/41), 185.34 MiB | 6.38 MiB/s, done.
Total 41 (delta 13), reused 0 (delta 0), pack-reused 0
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date

如有任何帮助,我们将不胜感激!

3zwtqj6y

3zwtqj6y1#

上面指出的问题是,我试图承诺很多。
我跑过去:

git reset --soft HEAD~1

这会删除以前的提交,然后提交并推送较小的更改。

i2byvkas

i2byvkas2#

如果你提交的文件太多,你可以增加http buffer的大小:
git config --global http.postBuffer 120000000 (~120MB)

相关问题