1. 代码超过500M,修改postbuffer
git config --global http.postBuffer 524288000
2. 配置git的最低速度和最低速度时间
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
3. 若提示fatal: The remote end hung up unexpectedly | 7.00 KiB/s
翻墙,或者重新push
如果以上都不好使,看下远程连接GitHub时用的是不是http协议,如果是的话换成ssh