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

相关推荐
sduwcgg6 小时前
git经验
git
麻雀无能为力7 小时前
git的使用
git
算法歌者9 小时前
Visual Studio 项目 .gitignore 文件指南
git·visual studio
江边垂钓者10 小时前
git cherry-pick和git stash命令详解
git
Lw老王要学习10 小时前
Linux架构篇、第五章git2.49.0部署与使用
linux·运维·git·云计算·it
爱学习的张哥10 小时前
专栏项目框架介绍
git·fpga开发·udp·ddr·gt收发器
Aric_Jones12 小时前
lua入门语法,包含安装,注释,变量,循环等
java·开发语言·git·elasticsearch·junit·lua
Sapphire~19 小时前
odoo-049 Pycharm 中 git stash 后有pyc 文件,如何删除pyc文件
ide·git·pycharm
Willis_m1 天前
Linux 服务器用 SSH 拉取多个 Git 工程
linux·服务器·git·ssh
1candobetter1 天前
git如何将本地 dev 分支与远程 dev 分支同步
git