git push时出现 fatal: The remote end hung up unexpectedly的错误

在项目根目录下执行如下命令

git config http.postBuffer 524288000  

将postBuffer设置大一些,应该就能解决这个问题了。