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