使用Github push 2M大小文件时提示:413 Request Entity Too Large

详细报错信息如下:
Delta compression using up to 4 threads. Total 6 (delta 2), reused 3 (delta 0) The remote end hung up unexpectedly The remote end hung up unexpectedly RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large

错误原因:
之前clone 项目时,使用的是国内镜像地址:
原地址:https://github.com/***.git
镜像地址:https://github.com.cnpmjs.org/xxx.git
导致push出问题。

错误解决:
将项目目录下:项目/.git/config文件打开。编辑url为正常的github地址即可。
[remote "origin"]
url = https://github.com/*.git
fetch = +refs/heads/
:refs/remotes/origin/

你可能感兴趣的:(使用Github push 2M大小文件时提示:413 Request Entity Too Large)