Reputation: 391
I'm very new at this but I'm trying to push to the master
branch on my repository and the branch I am trying to push is just over 1GB. Source Tree comes back with the error below:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
POST git-receive-pack (chunked)
error: unable to rewind rpc post data - try increasing http.postBuffer
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
Completed with errors, see above.
What am I doing wrong and what does it mean?
Upvotes: 39
Views: 42480
Reputation: 151
Perhaps not due to the same issue, but I got hear due to that same error message and in my case it was because the server had LFS (large file support) enabled but I had not yet run a "git lfs install" on my client.
BTW: I had LFS for this and many other reasons, but hopefully this might help someone if this error crops up due to an LFS mis-match.
Upvotes: 0
Reputation: 1
It might be the issue with the file size. If you are trying to upload files having size greater than 50 MB and the whole size of the push is greater than 500 MB then you will get this error message. Also check your network speed.
For fixing the buffer size issue,
open cmd
type the following,
git config --global http.postBuffer 2097152000
git config --global https.postBuffer 2097152000
Now the postBuffer size is set as 2 GB. Then also you are getting the same result, then you have to cross check the network speed.
Upvotes: 13
Reputation: 749
in case of using apache with git, this can be because the git directory is not owned by apache. To fix
sudo chown -R www-data:www-data /path/to/my/git/repo
Upvotes: 0
Reputation: 3569
try modify the postBuffer
size of git:
git config --global http.postBuffer 2097152000
git config --global https.postBuffer 2097152000
then try push again. (2097152000byte == 2000mb)
Upvotes: 90
Reputation: 663
Could you please try doing
git config http.postBuffer 1310720000
and re-try pushing.
Upvotes: 7