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

相关推荐
cen__y7 小时前
Linux12(Git01)
linux·运维·服务器·c语言·开发语言·git
bukeyiwanshui10 小时前
20260518 Swift实验
git·swift
qziovv10 小时前
Git 回退场景
大数据·git·elasticsearch
来自大山深处的Doge_13 小时前
解决Git提交更新更改时出错: detected dubious ownership in repository at ...
git
嵌入式爱好者hsw15 小时前
Git 部署本地仓库
git
C137的本贾尼16 小时前
Git基本操作(三):版本回退,坐上“时光机”
git
ylifs17 小时前
目的驱动式Git用法
git
来尔君18 小时前
Git Bash 提示符简化(就是每次敲命令时上面显示的那一行信息)
git·命令行
我叫张小白。18 小时前
PyCharm 集成 Git 与 Gitee
git·pycharm·gitee
小雨青年19 小时前
Git Bisect 实战:用二分法快速找到引入 Bug 的提交
git·bug