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

相关推荐
滕州市燕猫虎计算机科技工作室个体工商户4 小时前
Git常用命令汇总
git
czhc11400756636 小时前
2026-09-11 一日综合:树的父链、git 概念、三方死锁、静默失败
大数据·git·elasticsearch
ChampaignWolf6 小时前
abapgit-agent:用 Git 当中介,让 Claude Code 自己完成 ABAP 闭环开发
git·ai·abap·claude·abapgit·mcp
嘴贱欠吻!7 小时前
如何成为 CJMP 贡献者:AtomGit贡献流程与要求
git·ci/cd
滕州市燕猫虎计算机科技工作室个体工商户7 小时前
.gitignore文件不生效的解决方法
git·.gitignore·.gitignore不生效
hasty9 小时前
一个 Git 分支名,如何穿透到 CI Runner 的 Shell?
git·ci/cd
橘色的喵11 小时前
Claude Code 状态栏脚本:一行显示模型、上下文占用、git 分支和当前目录
linux·git·bash·claude
fangjianj11 小时前
git 常用命令
git
hasty13 小时前
execSync() 拼接 Git 参数的代价:从元数据到供应链执行
git·安全·安全性测试
墨白曦煜2 天前
穿透 IDE 的障眼法:Git 四大工作区与核心数据流转解析
ide·git