1

Before answering my question please take into consideration that I'm new to Github and how it works. I'm having trouble sharing my project to Github. I'm receiving the errors: The remote end hung up unexpectedly RPC failed; result=18, HTTP code = 200 The sharing process takes very long and it stops with this error. The project gets created on Github with no code. Other forums relating to this talk about GitBash. Note this is done through android studio.

Beginner
  • 65
  • 6
  • What git tool are you using ? Command line? Eclipse? Are you in a company/ school behind a proxy? – Verhagen Dec 20 '15 at 07:03
  • Did you already create a repository at GitHub? Can you post the url you try to clone? – Verhagen Dec 20 '15 at 07:04
  • It created the repository, but didn't transfer any files/code to the repository because the sharing process failed. I get the same error when trying to commit a push from android studio. Please again take in consideration that I'm a beginner at this. – Beginner Dec 20 '15 at 23:18
  • The fact this error is done though android studio does not change my answer: you would get the same error with a `git push` in command line. – VonC Dec 21 '15 at 06:05
  • I don't know what any of these terms mean, you're going to have to walk me through this. I would very much appreciate it if you took your time to teach me these terms. – Beginner Dec 21 '15 at 22:27

1 Answers1

0

As mentioned here

Specifically, the 'result=18' portion. This is the error code coming from libcurl, the underlying library used in http communications with Git. From the libcurl documentation, a result code of 18 means:

CURLE_PARTIAL_FILE (18)

A file transfer was shorter or larger than expected. This happens when the server first reports an expected transfer size, and then delivers data that doesn't match the previously given size.

You could try and increase the http buffer:

git config --global http.postBuffer 524288000

But first, make sure your local repo didn't include large binaries.
To be sure, check your .gitignore

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250