为什么我会收到错误:RPC失败;结果= 52,HTTP代码= 0致命:当推送到github时,远程端意外挂断? [英] Why do I get error: RPC failed; result=52, HTTP code = 0 fatal: The remote end hung up unexpectedly when pushing to github?

查看:458
本文介绍了为什么我会收到错误:RPC失败;结果= 52,HTTP代码= 0致命:当推送到github时,远程端意外挂断?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 github 上创建了一个新的存储库,并且想要推送一些文件。所以我像正常一样初始化资源库并执行 git add。来添加当前目录(这是我的 java 项目文件夹在 bin src 文件夹里面)。然后我使用以下方式添加远程目录:

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

然后我做了第一次提交 git commit -mFirst Commit git push -u origin master ,我得到这个错误:

 计数对象:63,完成。 
使用多达4个线程的增量压缩。
压缩对象:100%(60/60),完成。
写作对象:100%(62/62),16.98 KiB,完成。
总计62(增量15),重用0(增量0)
错误:RPC失败;结果= 52,HTTP代码= 0
致命:远程终端意外挂断
致命:远程终端意外挂断
所有最新的

但是,如果我只添加一个文件并尝试提交一个文件,它就会起作用。

发生了什么事?为什么我不能提交我的整个Java项目?这是一个非常小的项目,只有214k。请帮忙!谢谢!

解决方案

现在工作正常!我什至没有改变一件事。



这种错误'result = 52'是github本身的错误。 Github.com正在下降,当我尝试上传时,我得到了错误。现在该网站已恢复正常,我可以正常进行。

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!

解决方案

Now it is working! I didn't even change a thing.

This kind of an error ' result=52 ' is an error with github itself. Github.com was going down and when I tried uploading I got the error. Now the site is back up and I can commit like normal.

这篇关于为什么我会收到错误:RPC失败;结果= 52,HTTP代码= 0致命:当推送到github时,远程端意外挂断?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆