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

相关推荐
郑州光合科技余经理2 小时前
实战:攻克海外版同城生活服务平台开发五大挑战
java·开发语言·javascript·数据库·git·php·生活
CNRio3 小时前
Day 2:Git环境搭建全攻略:WindowsmacOSLinux三平台避坑指南
git
好好研究5 小时前
Git - tag标签和Git图像化界面
git·gitee
无限进步_5 小时前
【C语言&数据结构】有效的括号:栈数据结构的经典应用
c语言·开发语言·数据结构·c++·git·github·visual studio
不光头强7 小时前
git命令速查表
大数据·git·elasticsearch
大猫和小黄7 小时前
Ubuntu环境下GitBlit安装部署与版本库迁移
linux·运维·git·ubuntu·gitblit
野生yumeko7 小时前
wsl使用git
git·ssh·wsl
初学者_xuan7 小时前
Git&GitLab安装gitlab(rocky系统)
git·gitlab
凤凰战士芭比Q8 小时前
DevOps理念、Git(Git常用命令)、Gitlab仓库
git·gitlab·devops
CoderJia程序员甲8 小时前
GitHub 热榜项目 - 日榜(2025-12-20)
git·ai·开源·llm·github