今天将代码上传github时 出现 了这样的问题
fatal: The remote end hung up unexpectedly
发生的错误 具体是:
Counting objects: 61350, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (20587/20587), done.
efatal: The remote end hung up unexpecterror: RPC failed; HTTP 413 curl 22 The requested U
RL returned error: 413 Request Entity Too Large
dly
Writing objects: 100% (61350/61350), 4.32 GiB | 657.00 KiB/s, done.
Total 61350 (delta 39636), reused 59367 (delta 37653)
fatal: The remote end hung up unexpectedly
Everything up-to-date
这个是由于这次代码上传的太大了 需要在.git的config 里面做一个小修改
即 在config 里面添加:
[http]
postBuffer = 524288000
上面是windows环境下
如果是linux环境下的话 是:
git config http.postBuffer 524288000