error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 解决方案

error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 解决方案

使用Git提交时报错,代码如下:

bash 复制代码
$ git push -u origin "master"
Counting objects: 100% (95/95), done.
Delta compression using up to 12 threads
Compressing objects: 100% (92/92), done.
Writing objects: 100% (94/94), 726.86 MiB | 24.37 MiB/s, done.
Total 94 (delta 8), reused 0 (delta 0)
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
Everything up-to-date
bash: $: command not found

原因:

HTTP上传文件限制了文件大小

此时改变git配置是没有用的,因为这跟本不是git的问题

解决方法:

更换远程仓库地址,我这里换的是SSH

相关推荐
德彪稳坐倒骑驴10 小时前
Git常用命令
git
无限进步_11 小时前
【C语言&数据结构】对称二叉树:镜像世界的递归探索
c语言·开发语言·数据结构·c++·git·算法·visual studio
qq_54702617913 小时前
Git 使用指南
git
XiaoHu020715 小时前
Linux多线程(详细全解)
linux·运维·服务器·开发语言·c++·git
*才华有限公司*15 小时前
RTSP视频流播放系统
java·git·websocket·网络协议·信息与通信
juelianhuayao16 小时前
Git错误提交后如何快速删除本次commit
git
chen<>17 小时前
Git原理与应用
大数据·git·elasticsearch·svn
小兔崽子去哪了17 小时前
Git 专题
git
金米kk17 小时前
git pull时报错Your local changes to the following files would…的解决办法
git
超级罗伯特17 小时前
git一次性完成仓库下载及所有分支获取
git·git仓库拉取