git push时报错:packet_write_wait: Connection to 13.229.188.59 port 22: Broken pipe

git push时出错信息

packet_write_wait: Connection to 13.229.188.59 port 22: Broken pipe
fatal: sha1 file '' write error: Broken pipe
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly

原因

因为github的默认提交的文件大小是100M,如果你的文件大于100M,push时就会出现以上错误

解决

修改提交时的默认文件大小:
git config http.postBuffer 52428800 把大小配的大些即可!

参考:
http://www.cnblogs.com/MrZivChu/p/git.html

你可能感兴趣的:(git)