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 ...
随机推荐
- 使用FIO测试磁盘iops
我们如何衡量一个存储的性能呢?IOPS(Input/Output OperationsPer Second),即每秒进行读写(I/O)操作的次数是国际上通用的存储性能衡量标准,IOPS越高意味着在同一 ...
- jsp+Servlet+JavaBean+JDBC+MySQL项目增删改查
1简单的Mvc,分层建包. java resources src/mian/java (1)dao 包 JDBC连接类,连接数据库.增删改查方法,其他的方法. (2)model包 实体类,数据库字段, ...
- \extras\intel\Hardware_Accelerated_Execution_Manager HAXM 未安装导致AndroidStudio新建了模拟器开启不了
之前安装过 bios模式也是正常的.所以按照下面的步骤操作. https://software.intel.com/en-us/android 在这个界面 选择右侧的, 下载后解压到下面图上的路径: ...
- git实用操作21条
1.建空目录 mkdir e:\gg 2.把该目录变成仓库 git init //发现当前目录下多了一个.git 3.新建文件readme.txt 4.添加文件到仓库 git add readm ...
- configparser模块 logging模块
configparser模块 固定格式的配置文件 有一个对应的模块去帮你做这个文件的字符串处理 config = configparser.Configparser() config.read(“ex ...
- 【校招面试 之 剑指offer】第9-2题 用两个队列实现一个栈
#include<iostream> #include<queue> using namespace std; // 对于出栈解决的思路是:将queue1的元素除了最后一个外全 ...
- 【原创】Junit4详解二:Junit4 Runner以及test case执行顺序和源代码理解
概要: 前一篇文章我们总体介绍了Junit4的用法以及一些简单的测试.之前我有个疑惑,Junit4怎么把一个test case跑起来的,在test case之前和之后我们能做些什么? Junit4执行 ...
- IDEA 工具下导出文件及文件的目录结构插件
idea导出增量补丁插件 有时候需要导出IDEA的文件目录结构,即导出 指定修改后的JAVA文件编译后的CLASS .或者是修改过的jsp.配置文件等, 装载此插件,即可以完成导出文件 及文件的目 ...
- Tortoise SVN 使用笔记
最近一个项目,团队使用的是SVN来控制版本,所以顺便学习下SVN的知识.在Windows上,肯定是用图形化客户端Tortoise SVN在加速我们的工作. 首先,在一个准备用在工作目录的文件夹下,点击 ...
- 【深度好文】多线程之WaitHandle-->派生-》Mutex信号量构造
bool flag = false; System.Threading.Mutex mutex = new System.Threading.Mutex(true, "Test", ...