Mac OS下使用SourceTree Push到Github时出现 POST git-receive-pack (chunked) 的解决办法

在Mac os环境下,使用SourceTree向Github push提交代码时,出现以下提示:
POST git-receive-pack (chunked)
google到相同问题:stackoverflow

I found that the problem may be files that are large. I had one update that would not push even though I had successful pushes up to that point. There was only one file in the commit but it happened to be 1.6M

So I added the following config change

git config http.postBuffer 524288000
To allow up to the file size 500M and then my push worked. It may have been that this was the problem initially with pushing a big repo over the http protocol.

在SourceTree>设置>远程仓库>编辑配置文件中,增加相应代码:

[http] 
        postBuffer = 524288000

重新push,记得耐心等待上传完成,如果时间过长,可以考虑重新上传:)
原因:
因为仓库过大导致出现POST git-receive-pack (chunked) ,那么即使重新修改了配置文件,仍然要耐心等待一定时间。
尤其是国内网络问题,大文件push到github往往需要较长时间。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值