git push 报错 fatal: the remote end hung up unexpectedly
$ git push --set-upstream origin master 报错 fatal: the remote end hung up unexpectedly
将代码上传至github push的时候一直报 fatal: the remote end hung up unexpectedly这个错
原因:当clone或者pushgit项目时,文件太大便会出现fatal: The remote end hung up unexpectedly
解决方案: 此时需要修改.gitconfig配置文件,将postBuffer的缓存设置为500M就可以了
操作方法: 打开终端,执行指令: git config http.postBuffer 524288000Shell
再push
解决