GitHub fails cloning repo

Hi, GitHub Desktop always fails to clone repo locally. The download stops and i get this message:

*remote: Enumerating objects: 1241, done. *
**remote: Counting objects: 100% (1241/1241), done. **
**remote: Compressing objects: 100% (872/872), done. **
error: RPC failed; curl 56 Send failure: Connection was reset
error: 3588 bytes of body are still expected
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

Any idea of what is causing this? i’ve tried reinstalling the app but nothing changes. i’m no programmer and pretty ignorant on the matter so be kind!

According to the error, the Remote Procedure Call (RPC) by cURL failed due connection reset and/or an early End Of FIle (EOF) being received.

The reasons could be many, from poor internet connection (for whatever reason), to very big files causing trouble. If your repository is hosting big files, try enabling Git LFS (Large File Storage) in your repository settings, this would definitely help.