问题

  • 今天用Git上传项目时,最后一步push时命令行报错

error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413

fatal: the remote end hung up unexpectedly

fatal: the remote end hung up unexpectedly

解决

  • 上网查了一下问题,大致分为三种情况

1. 提交最大缓存问题

  • 将缓存修改为500mb或者更大
git config --global http.postBuffer 524288000
//或者
git config --global http.postBuffer 1048576000
  • 但是我试过之后发现没有什么用,并且我的项目本身也没有超过500mb,所以不是这个问题

2. 配置最低速度和最低速度时间

git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999 //单位 秒
  • global是当前配置,如果需要全局配置用system
  • 试过之后还是没有用,并且我的报错后面没有跟网速

3. 网络问题

  • 如果上面都没有用的话只能用第三个方法,那就是换一个网络好一点的地方再push一次!!!
  • 由于我是在图书馆连着手机热点传的,我猜大概率是这个原因,但是得等到到时候回去再传,所以等会回去见证奇迹

更新

回到寝室发现并不是网络问题,裂开,然后又查了一下找到了一个办法,把上传方式改成用SSH上传

1. 修改配置信息

  • 显示隐藏文件,在文件夹中用command + shift + .显示隐藏文件,找到.git中的config配置文件

  • 修改里面的URL为SSH链接

  • 此链接可以在项目中的clone下看到

  • 然后继续push,结果发现需要输入passphase,然后在网上查了一下发现不管输入还是不输入都不行,表示我们对自己的git使用了私钥,在公钥的基础上又加了一道保障,所以会出现重复性输入密码,需要修改密钥

2. 修改密钥

  • 进入.ssh文件夹中有三个文件

  • 删除id_rsa和id_rsa.pub文件

rm id_rsa*
  • 返回上级,重新生成密钥
ssh-keygen -t rsa -C "1018558037@qq.com" -b 4096//中间是自己的邮箱

  • 后面一路回车就可以了

  • 然后进入id_rsa.pub中查看密钥
cd .ssh
cat id_rsa.pub

  • 然后在Github上面链接你的密钥,点击新建ssh key

  • 最后再push到仓库中

  • 登陆Github查看记录,发现已经更新成功了,大功告成!

疑问

  • 但是最后我发现有一个问题,就是上面的记录其实是我两个小时前用http上传的记录,但是之前在Github上面查看的时候又根本没有记录,就离谱

关于Git上传项目报错error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413的更多相关文章

  1. git报错error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500

    报错 $ git push; Enumerating objects: 1002, done. Counting objects: 100% (1002/1002), done. Delta comp ...

  2. 使用git提交时报错:error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large

    Delta compression using up to 4 threads.Compressing objects: 100% (2364/2364), done.Writing objects: ...

  3. (原)使用TortoiseGit提交代码push的时候报错:HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large

    今天我想rk的sdk包里面的一些东西提交到我的git服务器上,结果,总是报错,折腾了一下午,结果才解决. 首先看看我提交代码的时候,报错的信息: git.exe push --progress &qu ...

  4. 【Git】error: RPC failed; HTTP 413 curl 22 The requested URL returned error:413 Request Entity Too Large

    error: RPC failed; HTTP 413 curl 22 The requested URL returned error:413 Request Entity Too Large fa ...

  5. 解决Gitlab的The remote end hung up unexpectedly错误,解决RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large问题

    解决Gitlab的The remote end hung up unexpectedly错误 解决RPC failed; HTTP 413 curl 22 The requested URL retu ...

  6. 解决RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large问题

    使用SourceTree客户端,向远程仓库推送时:RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request ...

  7. 使用nginx代理gogs遇到推送代码错误的问题(RPC failed; HTTP 413 curl 22 The requested URL returned error: 413)

    前提 代码管理我是用Gogs.Git,前些阵子使用Nginx将git.balabiu.com反向代理到了Gogs的默认端口,其他二级域名准备做其他使用, 导致上报代码出现了错误. 问题 推送代码报错误 ...

  8. 安装docker报错:https://download.docker.com/linux/centos/7/i386/stable/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

    如题,执行docker安装命令报错: [root@centos ~]# yum install docker-ce Loaded plugins: fastestmirror, security Se ...

  9. yum异常: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

    http://people.centos.org/hughesjr/chromium/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 ...

  10. PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"

    RHEL6.5创建本地Yum源后,发现不可用,报错如下: [root@namenode1 html]# yum install gcc Loaded plugins: product-id, refr ...

随机推荐

  1. [OI] 二项式期望 DP

    OSU OSU yet Another OSU yet yet Another OSU OSU 的题目是这样的:有一些相邻的块,给定每一个块的联通概率,每个连通块对答案有 \(size^{3}\) 的 ...

  2. 信息打点-Web应用

    企业信息 小蓝本 https://sou.xiaolanben.com/pc 企业信息 爱企查 https://aiqicha.baidu.com/ 主要看知识产权 网络空间 FOFA https:/ ...

  3. nginx缓存加速笔记

    目录 1 服务端缓存原理 1.1 定义一个缓存目录 1.2 启用缓存 1.3 Nginx 作反代 1.4 缓存一时爽,全家火葬场. 1.5 ngx_cache_purge 1 服务端缓存原理 主要是缓 ...

  4. 使用 Ant-Design-Vue 制作一个带图片上传功能的表单对话框

    功能需求 使用 Antdv 的 Modal 组件内嵌一个 a-form 表单,具有添加数据和图片的功能. 页面结构设计 <template> <!--Modal--> < ...

  5. 【Wing】背后的插件们

    wing 作为我们日常开发的命令行开发工具,项目开源以来,陆陆续续接入了多个插件,在这里集中分享给大家. ☞ Github ☜ ☞ Gitee ☜ 01. wing -screen 作为Android ...

  6. USB2.0设备的休眠挂起及远程唤醒

    USB可见设备状态,分为连接(Attached),上电(Powered),默认(Default),地址(Address),配置(Configured)和挂起(Suspended)6个状态.所谓可见,即 ...

  7. Android dtbo(3) 编译和验证

    您可以使用设备树编译器 (DTC) 编译设备树源文件.不过,在将叠加层 DT 应用于目标主 DT 之前,您还应该通过模拟 DTO 的行为来验证结果. 1. 通过DTC进行编译 构建主 DT .dts ...

  8. 80篇国产数据库实操文档汇总(含TiDB、达梦、openGauss等)

    国产数据库发展得如火如荼,数据库的国产化替代也正在进行中.最近,有越来越多的朋友都加入了学习国产数据库的队伍中,本文便选取了墨天轮技术社区的国产数据库流行度排行榜上排名靠前的几个数据库,整理了相关的实 ...

  9. C# 新语法 switch 的简单写法

    // C# 中的新语法 switch 的简写 string str = "123"; string res = str switch { "1" => & ...

  10. Machine Learning Week_1 Model and Cost Function 1-4

    目录 2 Model and Cost Function 2.1 Video: Model Representation unfamiliar words 2.2 Reading: Model Rep ...