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提交时报错,代码如下:

$ 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

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-RuUWaZAM-1649129990474)(C:\Users\AI\Desktop\黄柏辉\博客\image\Git413代码解决方案1.png)]

原因:

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

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

解决方法:

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

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-0yQEWI5u-1649129990475)(C:\Users\AI\Desktop\黄柏辉\博客\image\Git413代码解决方案.png)]

第一步 修改地址
git remote set-url origin 复制的地址
第二步 重新上传
git push

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-PuZVCx2N-1649129990476)(C:\Users\AI\Desktop\黄柏辉\博客\image\Git文件大小超过100M2.png)]

  • 6
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值