Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I get error: RPC failed; result=52, HTTP code = 0 fatal: The remote end hung up unexpectedly when pushing to github?

Tags:

I created a new repository on github and wanted to push some files. So I initialize the repository like normal and do git add . to add the current directory (which is my java project folder with bin and src folder inside). Then I added the remote directory using:

git remote add https://github.com/username/project.git 

Then I made my first commit git commit -m "First Commit"

then I type git push -u origin master and I get this error:

Counting objects: 63, done. Delta compression using up to 4 threads. Compressing objects: 100% (60/60), done. Writing objects: 100% (62/62), 16.98 KiB, done. Total 62 (delta 15), reused 0 (delta 0) error: RPC failed; result=52, HTTP code = 0 fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly Everything up-to-date 

But if I add just one file and try to commit just a single file, it works.

What is going on? Why can I not commit my whole Java project? Its a pretty small project only 214k. Please help! Thanks!

like image 948
Nearpoint Avatar asked Aug 26 '13 04:08

Nearpoint


People also ask

How do you solve fatal the remote end hung up unexpectedly?

Solution. To solve the issue, change the settings of your buffer so that you have enough space available. You can increase the buffer value up to 2000000000.

What is git post buffer?

From the git config man page, http. postBuffer is about: Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally.


1 Answers

Bitbucket has the same error message. Often it is related to degraded server performance. Before you start doing anything else, check:

  • https://bitbucket.status.atlassian.com/

  • https://www.githubstatus.com/

like image 161
jjpcondor Avatar answered Oct 13 '22 23:10

jjpcondor