git push报错 pack-objects died of signal 13

想把我本地的Android4.0.3的安卓系统代码提交到远程git仓库。

git push origin master

报错:

Counting objects: 2309, done.
Delta compression using up to 4 threads.
Connection to bitbucket.org closed by remote host.
fatal: The remote end hung up unexpectedly
Compressing objects: 100% (2295/2295), done.
error: pack-objects died of signal 13
error: failed to push some refs to .... 

两种解决方法:
第一种在.git层目录执行:

git config http.postBuffer 5242880

第二种进入.git目录
在config文件中加上:

[http]
	postBuffer = 52428800

原因:
git 远程仓库限制了推送包的大小。显然Android源代码过大。

针对这个,放大推送量就可以了。
postBuffer:字节数。

你可能感兴趣的:(git)