I'm new to GitHub, what is causing this error?

I’m very new and have no idea what is causing this. I’m using GitHub with Unity 3D

Enumerating objects: 16432, done.
Counting objects: 100% (16429/16429), done.
Delta compression using up to 8 threads
Compressing objects: 100% (11182/11182), done.
error: RPC failed; curl 55 Send failure: Connection was aborted
fatal: the remote end hung up unexpectedly
Writing objects: 100% (16420/16420), 6.75 GiB | 1.55 MiB/s, done.
Total 16420 (delta 9094), reused 10303 (delta 5205), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date

I am also having this exact same problem! Also using Unity3D. Tried command line and the GUI for Github. Also tried adding LFS data (50 GB) and tried creating several different repositories. Seems to be an issue with large file sizes? The file I am trying to push is about 3 GB. Here is what I get:

Enumerating objects: 8805, done.
Counting objects: 100% (8805/8805), done.
Delta compression using up to 16 threads
Compressing objects: 100% (6970/6970), done.
error: RPC failed; curl 55 Send failure: Connection was aborted
fatal: the remote end hung up unexpectedly
Writing objects: 100% (8804/8804), 2.99 GiB | 6.18 MiB/s, done.
Total 8804 (delta 4902), reused 3380 (delta 1833), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date

What command are you executing?

When you’re pushing a large amount of data git may require a higher http.postBuffer setting on your git client (not the server).

Quick fix:
Increase the Git buffer size to the largest individual file size of your repo:

git config --global http.postBuffer 524288000

if that’s not enough, double it.

git config --global http.postBuffer 1048576000

Hope that helps. :v:t4: