(原)使用TortoiseGit提交代码push的时候报错:HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
今天我想rk的sdk包里面的一些东西提交到我的git服务器上,结果,总是报错,折腾了一下午,结果才解决。
首先看看我提交代码的时候,报错的信息:
git.exe push --progress "origin" master:master
Counting objects: 43142, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (25108/25108), done.
Writing objects: 100% (43142/43142), 824.64 MiB | 26.18 MiB/s, done.
Total 43142 (delta 14030), reused 43141 (delta 14030)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
Everything up-to-date
git did not exit cleanly (exit code 1) (717417 ms @ 2016/11/1 15:57:57)
网上搜了一下,我以为跟上次我pull的时候报错git clone: error: RPC failed; result=18, HTTP code = 200 解决办法的解决方法一样哦,结果我始终修改http.postBuffer的大小,改大改小都试过,但提交到一定大小以后,老是会出现上述的报错信息。
后面结合http://stackoverflow.com/questions/7489813/github-push-error-rpc-failed-result-22-http-code-413中的内容,以及http://blog.csdn.net/passion_wu128/article/details/8234901博文的内容,我了解到上述的这种报错:
这跟Git的postBuffer变量值没有关系。
(如果code = 411,则是由postBuffer引起的,可以在客户端执行
git config --global http.postBuffer 52428800,改为最大50M)
解决方法其实能通过ssh提交来解决,所以实在没办法,我使用ssh来提交,而不用之前的http方法,最后证明可行。
这里记录下使用ssh提交代码和生成公钥的过程。
这个过程,我借鉴http://www.cnblogs.com/ChenRihe/p/Git_TortoiseGit_SSH.html的部分内容做参考:
1.如果没配置过用户名和密码(配过也再来一次咯):
git config --global user.name "John Doe"
git config --global user.email "johndoe@doebrothers.com"
下图抄的..

2.创建SSH和复制公钥到剪切板(如复制以下代码执行出现参数过多提示,一般由于字符问题,需自己手打以下代码)
ssh-keygen –t rsa –C "johndoe@doebrothers.com"
clip < ~/.ssh/id_rsa.pub
下图抄的..

3.生成ssh公钥以后,我们先cat一下公钥,在git bash中输入cat ~/.ssh/id_rsa.pub,这个时候会显示出我们生成的公钥,这时候拷贝公钥,在我们git的账户中添加ssh就OK。
4.设置remote url,在git bash中输入:
git remote set-url origin git@github.com:GitRepoName.git
github.com是你的服务器域名,例如你用开源中国的码云的话,这个地方就是git@git.oschina.net
GitRepoName.git是git仓库名。
5.提交代码,git push origin master
使用ssh提交代码,比使用http不但能解决413的大文件报错,同时还能提高提交代码的速度,从我提交的速度来看,他最少能够提升100%的速度,所以还是使用ssh吧。
转载注明出处:http://www.cnblogs.com/lihaiping/p/6021813.html
(原)使用TortoiseGit提交代码push的时候报错:HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large的更多相关文章
- 使用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: ...
- 使用nginx代理gogs遇到推送代码错误的问题(RPC failed; HTTP 413 curl 22 The requested URL returned error: 413)
前提 代码管理我是用Gogs.Git,前些阵子使用Nginx将git.balabiu.com反向代理到了Gogs的默认端口,其他二级域名准备做其他使用, 导致上报代码出现了错误. 问题 推送代码报错误 ...
- git push The requested URL returned error: 403 Forbidden while accessing
错误提示信息: error: The requested URL returned error: Forbidden while accessing https://github.com/xingfu ...
- 解决github push错误The requested URL returned error: 403 Forbidden while accessing
来源:http://blog.csdn.net/happyteafriends/article/details/11554043 github push错误: git push error: The ...
- 解决git提交问题error: The requested URL returned error: 403 Forbidden while accessing
git提交代码时,出现这个错误"error: The requested URL returned error: 403 Forbidden while accessing https&qu ...
- GitHub 在使用命令行 git push 时报错:The requested URL returned error: 403
使用 git 的命令行向 GitHub 提交的时候,报错: [Young@localhost OtherLang]$ git push origin master error: The request ...
- 解决github push错误The requested URL returned error: 403 Forbidden while accessing(转)
github push错误: git push error: The requested URL returned error: 403 Forbidden while accessing https ...
- 解决在Vue项目中时常因为代码缩进导致页面报错的问题
前言 如果我们初次使用vue-cli来构建单页SPA应用,在撸代码的过程中有可能会遇到这种因为代码缩进导致 页面报错的问题,导致我们烦不胜烦.接下来我们就来看一看如何解决这个小问题... erro原因 ...
- TortoiseGit 提交代码每次需要输入用户名和密码?
每次用TortoiseGit Pull或者Push的时候都会弹出让输入用户名.密码的框, 很麻烦 ,解决办法如下: 解决办法如下: Right click → TortoiseGit → Settin ...
随机推荐
- 把Catalina的字符串格式转化为日期格式
public static void distinctCoords(LinkedList list,String date,String imei,double GpsLat,double GpsLn ...
- eclipse中配置server
打开Eclipse,在打开上面的help--- install new software---- work with 里面点开选择--All Available Sites-- 等下面的pending ...
- SimpleDateFormat 格式化参数说明
字母 日期或时间元素 表示 示例 G Era 标志符 Text AD y 年 Year 1996; 96 M 年中的月份 Month July; Jul; 07 w 年中的周数 Number 27 W ...
- 细说ASP.NET Windows身份认证
上篇博客我谈到了一些关于ASP.NET Forms身份认证方面的话题,这次的博客将主要介绍ASP.NET Windows身份认证. Forms身份认证虽然使用广泛,不过,如果是在 Windows Ac ...
- cordova 开发笔记
1.安装 Node.js Cordova需要Node.js环境,访问https://nodejs.org 下载安装, LTS版本即可,不要最新版. 2.安装 Cordova 执行下述命令把Cordov ...
- AB Test 是什么
关于AB Test是什么 一种灰度发布方式. ps:什么是灰度发布 每个灰度对象都是0%(白色)到100%(黑色)的中间值,灰度发布是指在黑白之间,能够平滑过度的一种发布方式. 实现方式 让一部分用户 ...
- I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
问题: 安装TensorFlow(CPU版本),使用pip install tensorflow安装,安装一切顺利,但是在跑一个简单的程序时,遇到如下情况: 大概意思是:你的CPU支持AVX扩展,但是 ...
- [Oracle] Data Pump 详细使用教程(1)- 总览
从10g开始,Oracle提供更高效的Data Pump(即expdp/impdp)来进行数据的导入和导出,老的exp/imp还可以用,但已经不建议使用.注意:expdp/impdp和exp/imp之 ...
- Linux及Arm-Linux程序开发笔记(零基础入门篇)
Linux及Arm-Linux程序开发笔记(零基础入门篇) 作者:一点一滴的Beer http://beer.cnblogs.com/ 本文地址:http://www.cnblogs.com/bee ...
- 为什么和什么是 DevOps?
原文地址 本文内容 为什么 DevOps 什么是 DevOps DevOps 所带来的好处 如何将 DevOps 落到实处? 关于 DevOps 的澄清 参考资料 编写软件之所以难,是因为没有哪两个软 ...