方法一: 修改提交缓存大小为500M,或者更大的数字 git config --global http.postBuffer 524288000 some comments below report having to double the value: git config --global http.postBuffer 1048576000 或者在克隆/创建版本库生成的 .git目录下面修改生成的config文件增加如下: 修改如下: 然后重新推送