'Pushing to github repo produces curl error 56

Just created a new repo, and on desktop I want to push the main branch to GitHub (theres around 40000 source code files). Every time I try this, I get

Enumerating objects: 46338, done.
Counting objects: 100% (46338/46338), done.
Delta compression using up to 12 threads
Compressing objects: 100% (41677/41677), done.
Writing objects: 100% (46338/46338), 706.90 MiB | 68.44 MiB/s, done.
Total 46338 (delta 5210), reused 43639 (delta 4240), pack-reused 0
error: RPC failed; curl 56 Send failure: Connection was aborted
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date

Ive tried updating http post buffer, and paused the firewall and anti virus. Any ideas?



Solution 1:[1]

Your internet just disconnected. Try it with a better connection

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Semih Sönmez