gitgithubgitlabgit-push

Git push failure


I am trying to push to git and am getting this error message

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

I have already tried:

git config http.postBuffer 524288000

But this resulted in a different but similar message:

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

Any help would be much appreciated!


Solution

  • Problem which was pointed out above was that I was trying to commit to much.

    I ran:

    git reset --soft HEAD~1
    

    Which removes the previous commits, I then committed and pushed smaller changes.