提交错误如下:
$ git push origin
Enumerating objects: 1107, done.
Counting objects: 100% (1107/1107), done.
Delta compression using up to 16 threads
client_loop: send disconnect: Connection reset by peer
fatal: the remote end hung up unexpectedly
Compressing objects: 100% (1086/1086), done.
fatal: sha1 file '<stdout>' write error: Broken pipe
fatal: the remote end hung up unexpectedly
可能的原因:
1、提交的文件过大,
可以通过git config --global http.postBuffer 524288000,修改提交缓存大小
2、网速比较慢,提交超时
3、由于多次提交失败,暂存了一些无用信息,可以通过执行:
git gc ,这个命令是优化本地仓库,删除一些冗余文件;执行这个命令以后,在进行git push提交就ok了