Git:解决报错:fatal: The remote end hung up unexpectedly

发布时间 2023-06-17 13:07:13作者: bitterteaer

问题描述:Git在推送项目时报错:fatal: The remote end hung up unexpectedly。

问题原因:推送的文件太大。

解决方法:

1.修改设置git config文件的postBuffer的大小。(设置为500MB)

$ git config --local http.postBuffer 524288000

注:--local选项指定这个设置只对当前仓库生效。