Home > Software engineering >  SourceTree Github When Pushing Return Error
SourceTree Github When Pushing Return Error

Time:01-19

I wasn't able to push a commit to the repository. Below is the message and screenshot I got from Sourcetree. I am using a Mac.

Error:-

POST git-receive-pack (chunked)
error: RPC failed; curl 55 SSL_write() returned SYSCALL, errno = 32
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date.

ScreenShot

ScreenShot

Question: Can someone please explain to me how to push.

Any help would be greatly appreciated.

Thanks in advance.

CodePudding user response:

The GH001: Large file detected (seen in the screenshot) seems to indicate the connection fails because your pushed commit is too big.

As mentioned, using LFS, or filtering large object from your history (using git filter-repo as in here), are two alternatives.

CodePudding user response:

According to the Github documentation for large files size:

GitHub limits the size of files allowed in repositories. If you attempt to add or update a file that is larger than 50 MB, you will receive a warning from Git. The changes will still successfully push to your repository, but you can consider removing the commit to minimize performance impact.

Here, your file is above 100MB (according to the screenshot). In that case:

GitHub blocks pushes that exceed 100 MB.

To track files beyond this limit, you must use Git Large File Storage (Git LFS). For more information, see "About Git Large File Storage."

If you need to distribute large files within your repository, you can create releases on GitHub.com instead of tracking the files. For more information, see "Distributing large binaries."

  •  Tags:  
  • Related