场景

使用git上传代码到bae中 出现以下错误

Counting objects: 657, done.     
Delta compression using up to 4 threads.     
Compressing objects: 100% (438/438), done.     
error: RPC failed; result=22, HTTP code = 411     
fatal: The remote end hung up unexpectedly     
Writing objects: 100% (447/447), 3.62 MiB | 0 bytes/s, done.     
Total 447 (delta 233), reused 0 (delta 0)     
fatal: The remote end hung up unexpectedly     
Everything up-to-date

## 解决的办法

在命令行执行 :

git config http.postBuffer 524288000

## 原因

默认 Git 设置 http post 的缓存为 1MB,上述代码将其设置为 500MB

参考

http://blog.liuweifeng.net/archives/571