The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
上传一份代码的时候,出现了这个错误,然后就没有成功上传.
背景操作
主要是进行svn转换到git时候出错的,转换的代码比较简单,三行就可以解决.当然,web端的项目要事先准备好.
git svn clone svn://xxxxx
git remote add origin git@github.com/xxx/xxx.git
git push -u origin master
出错发生
本来还算顺利的,有三个项目,前面两个成功了,但是第三个时候,有文件比较大,导致错误,没有上传成功,具体报错如下:
Counting objects: 61350, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (20587/20587), done.
efatal: The remote end hung up unexpecterror: RPC failed; HTTP 413 curl 22 The requested U
RL returned error: 413 Request Entity Too Large
dly
Writing objects: 100% (61350/61350), 4.32 GiB | 657.00 KiB/s, done.
Total 61350 (delta 39636), reused 59367 (delta 37653)
fatal: The remote end hung up unexpectedly
Everything up-to-date
看到这个的初步感觉是有文件太大无法上传,百度之后找到一个解决方案,直接在配置文件中添加参数即可.
- windows:
在 .git/config 文件中加入
[http]
postBuffer = 524288000
- linux:
git config http.postBuffer 524288000
分析
目前是成功解决问题了,根据错误,这个是明显的文件过大导致的上传失败了,我实际更改的时候是直接更改的1g了.
算是成功解决问题.
看到还有用git命令直接修改的,由于一次就成功了,就没有再重新尝试一下修改之后能够行得通了,后面遇到再试了.
参考的博客
- Git中push时出现错误fatal: The remote end hung up unexpectedly - 行者小朱的博客 - CSDN博客
http://blog.csdn.net/u012050154/article/details/54605256 - 解决RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large问题 - 飞鱼君 - 博客园
https://www.cnblogs.com/feiyujun/p/7755764.html
The remote end hung up unexpectedly的更多相关文章
- git提交报异常,fatal: The remote end hung up unexpectedly
转自:http://liucanwen.iteye.com/blog/2021601 早上提交代码到 oschina代码库时,报了这个错误: fatal: The remote end hung up ...
- Git 提交大文件提示 fatal: The remote end hung up unexpectedly
使用gitlab搭建的git server,如果直接使用http的方式去提交的话,提交小文件不会有问题,但是提交大文件时,会出错: fatal: The remote end hung up unex ...
- fatal: The remote end hung up unexpectedly
git push 的时候出错,提示: fatal: The remote end hung up unexpectedly 遇见几次了,原因是因为文件太大,把限制放宽就好了.命令: git confi ...
- ssh: Could not resolve hostname git.*****-inc.com : Temporary failure in name resolution fatal: The remote end hung up unexpectedly
问题出现的情景:使用git pull拉取开发的代码到测试服务器,报错: ssh: Could not resolve hostname git.****-inc.com : Temporary fai ...
- git push fatal: The remote end hung up unexpectedly
git push fatal: The remote end hung up unexpectedly git config http.postBuffer git gc --aggressive 不 ...
- git 推送出现 "fatal: The remote end hung up unexpectedly" 解决方案
本文转载于:https://blog.csdn.net/zcmain/article/details/76855595 https://blog.csdn.net/u012973744/article ...
- git fatal: The remote end hung up unexpectedly 错误
使用git将本地项目添加到远程仓库报以下错误 $ git push -u origin master fatal: The remote end hung up unexpectedly | 11.0 ...
- Permission denied (publickey). fatal: The remote end hung up unexpectedly 解决办法
这两天学习git的时候,在本地创建了一个库,同时自己在GitHub上面也创建了一个库,照着廖老师的教程一步一步走到了push的环节突然出现了这样的错误: [zhangxiyu@localhost le ...
- The remote end hung up unexpectedly while git cloning
https://stackoverflow.com/questions/6842687/the-remote-end-hung-up-unexpectedly-while-git-cloning Qu ...
随机推荐
- clusterProfiler包
1)enrichGO:(GO富集分析) 描述:GO Enrichment Analysis of a gene set. Given a vector of genes, this function ...
- The Doors(几何+最短路,好题)
The Doors http://poj.org/problem?id=1556 Time Limit: 1000MS Memory Limit: 10000K Total Submissions ...
- 【校招面试 之 C/C++】第12题 C++ 重载、重写和重定义
1.成员函数重载特征: a.相同的范围(在同一个类中): b.函数名字相同: c.参数不同(参数个数不同或者参数类型不同,但是返回值不同不能使重载): d.virtual关键字可有可无. 2.重写 ...
- python之多并发socket
先看socket多并发的服务端的代码,这里是用多线程实现的多并发socketserver import socketserver # socketserver有四个基本的类,后两个不常用,这4个类处理 ...
- BIOS设置找不到设置U盘启动
今天上午弄了好久,BIOS设置找不到设置U盘启动,后来改了一个选项突然就可以了,或许有时候是这个地方的问题 advanced bios features-->interrupt 19 captu ...
- 向mysql数据库插入大量数据
1. package com.zy.demo; import java.sql.Connection; import java.sql.DriverManager; import java.sql.P ...
- 在ecplise中创建一个maven工程
1.我们首先需要在Ecplise中配置maven环境,详情见我的博客:https://www.cnblogs.com/wyhluckdog/p/10277278.html 2.maven projec ...
- JFinal开发框架简介
JFinal 中的Controller Controller是JFinal核心类之一,该类作为MVC模式中的控制器.基于JFinal的Web应用的控制器需要继承该类.Controller是定义Acti ...
- struts框架总结
1.struts2框架开发的过程:先导包,再写配置(写struts.xml配置,还有在web.xml中进行过滤器的配置,过滤器的配置一定不能少) 2.struts框架是前端web层的框架.主要的特点: ...
- MVC扩展HtmlHelper,加入RadioButtonList、CheckBoxList、DropdownList
代码: using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions ...