Git error when pushing large LFS data
When pushing large files to GitLab or some other remotes, sometimes it will fail. We can fix it by the following command:
git config http.postBuffer 524288000
Sample error message:
D:\SampleProject>git push
Git LFS: (5 of 5 files, 20 skipped) 584.90 KB / 584.90 KB, 18.80 MB skipped
Counting objects: 935, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (920/920), done.
error: unable to rewind rpc post data - try increasing http.postBuffer
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
fatal: The remote end hung up unexpectedly| 0 bytes/s
Writing objects: 100% (935/935), 3.70 GiB | 357.00 KiB/s, done.
Total 935 (delta 711), reused 4 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date