1
error: RPC failed; result=56, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

Just started getting this error today morning when trying to do a git push and it won't work. Other repos are good to go but not this one.
Git pull works. I am on Ubuntu if that helps.

Also tried this and it doesn't work either

git config --global http.postBuffer 524288000
CodeWizard
  • 128,036
  • 21
  • 144
  • 167
emuigai
  • 99
  • 1
  • 11
  • Check your remote URLs: `git remote -v` – Antonio Pérez Jan 12 '16 at 10:09
  • What are the results of `git fetch --all --prune` – CodeWizard Jan 12 '16 at 11:05
  • Possible duplicate of [Git push failed. error: RPC failed; result=56, HTTP code = 0](http://stackoverflow.com/questions/29557504/git-push-failed-error-rpc-failed-result-56-http-code-0) – Ferrybig Jan 12 '16 at 11:07
  • I have noticed that whenever {{Writing objects: 100% (28/28), 980.20 KiB | 0 bytes/s, done.}} whenever the writing object passes 300 Kib it wont push. Any thoughts? – emuigai Jan 13 '16 at 20:15

2 Answers2

1

There was one project folder that had photos which I had to remove. It took me a whole week+ to figure out since the project is under 100mb

emuigai
  • 99
  • 1
  • 11
1

It can also be due to the file names containing special characters.

After 5 days of struggle, today I figured out that some files contain "%, @, ~, +" and this error "fatal: The remote end hung up unexpectedly" is so non intuitive.

The whole magic of a universal iOS project is based on ~ and @, the file names have format "myImage~ipad@2x.png" If you try commiting such project from terminal you can observe "writing objects xx%" and then it breaks.

relevant ref : https://jira.atlassian.com/browse/CONFSERVER-4503

jeet.chanchawat
  • 5,842
  • 5
  • 38
  • 59