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