挂在“POST git-receive-pack (chunked)"处 [英] Hanging at "POST git-receive-pack (chunked)"

查看:19
本文介绍了挂在“POST git-receive-pack (chunked)"处的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

老实说,我对 git 的内部原理知之甚少.

I will be honest, I know very little about the internals of git.

我已经暂存并提交了一个 40mb 的目录,但是当我开始推送时......

I have staged and commit a 40mb directory, but when I come to push...

$ git push --verbose --progress
Pushing to https://acron0@bitbucket.org/acron0/project.git
Password for 'https://acron0@bitbucket.org':
POST git-receive-pack (chunked)

就这样持续了 20 分钟.我假设它挂了但是......我能做些什么来找出原因吗?

It's been like this for 20 minutes. I am assuming it's hanging but...is there anything I can do to find out why?

推荐答案

这是 Git 中的一个错误;使用 HTTPS 时,它将使用分块编码来上传超过特定大小的内容.那些不起作用.

This is a bug in Git; when using HTTPS it will use chunked encoding for uploads above a certain size. Those do not work.

一个简单的解决方法是告诉 git 在某些大到离谱的值之前不要分块,例如:

A trivial fix is to tell git to not chunk until some ridiculously large size value, such as:

git config http.postBuffer 524288000

这篇关于挂在“POST git-receive-pack (chunked)"处的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆