Git推送失败

Git push failure

我正在尝试推送到 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

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

上面指出的问题是我试图承诺太多。

我运行:

git reset --soft HEAD~1

删除了之前的提交,然后我提交并推送了较小的更改。