6

I use bitbucket repository and I made a lot of changes in the project. So when i push into rep, i got an error. SourceTree : git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin Develop:Develop POST git-receive-pack (23013447 bytes)

fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly

error: RPC failed; result=56, HTTP code = 0

Pushing to bitbucket. Everything up-to-date

Completed with errors, see above.

I tried:

git config --global http.postBuffer2M

git config http.postBuffer 524288000

but it doesn't help.

1
  • Also i have ADSL wireless router. Commented Apr 10, 2015 at 10:53

1 Answer 1

11

The error from what I know means that the upload link got terminated in a way that it wasn't supposed to. This is typically because of either a timeout or network connectivity issues. With increasing the buffer size the servers shouldn't be timing out, but you may still have other issues to check for as below. Note that I am assuming that you have a space between http.postBuffer and 2M in "git config --global http.postBuffer 2M" since your original post didn't and I thought it is a typo when entering it here. You could also change the global buffer to a much larger size like by using 524288000 (which is 500MB) instead of 2M (i.e. git config --global http.postBuffer 524288000)

A few other things:

  • If you have a software firewall like Kaspersky AV, disable it and retry.
  • If you are over wireless connection, switch to a hardwire ethernet. Some wireless adaptors/drivers seem to be problematic with large commits.
  • Make sure you have a reliable ISP link.
  • Also if you are using HTTP for git, setup SSH key-pair and use them instead.
Sign up to request clarification or add additional context in comments.

3 Comments

Ok , i will try. I used SSH, but it does not help.
how to solved this at last?@DenisMarkov. them not wark for me.
push with -u key helped me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.