Git 【fatal: The remote end hung up unexpectedly 问题】

匿名 (未验证) 提交于 2019-12-03 00:25:02

出现 “fatal: The remote end hung up unexpectedly” 的原因是推送的文件太大了。

可以先看这篇文章忽略掉 Cocoapods 引入的三方文件:Git 【.gitignore】

如果说还是没有办法解决,那么我们可以修改 git 限制提交缓存的大小。

进入隐藏文件 .git 下,打开 config 文件。修改为一个较大的提交缓存值,如下为 500MB:

[core] 	repositoryformatversion = 0 	filemode = true 	bare = false 	logallrefupdates = true 	ignorecase = true 	precomposeunicode = true [remote "origin"] 	url = git@gitee.com:yigaosu/eHighSpeed.git 	fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] 	remote = origin 	merge = refs/heads/master [http] 	postBuffer = 524288000
500MB = 1024 * 1024 * 500 = 524288000 B
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!