挂在“POST git-receive-pack(分块)” [英] Hanging at "POST git-receive-pack (chunked)"
本文介绍了挂在“POST git-receive-pack(分块)”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我会说实话,我对git的内部知道的知之甚少。
我已经上演并提交了一个40MB目录,但是当我推动时.. 。
$ git push --verbose --progress
推送至https://acron0@bitbucket.org/ acron0 / project.git
'https://acron0@bitbucket.org'的密码:
POST git-receive-pack(分块)
20分钟就是这样。我假设它挂起来了,但是......有什么我可以做的,以找出原因?
解决方案
这是一个错误Git的;当使用HTTPS时,它将使用分块编码进行超过一定大小的上传。那些不起作用。
一个简单的解决办法是告诉git不要大块,直到一些可笑的大尺寸值,比如:
git config http.postBuffer 524288000
I will be honest, I know very little about the internals of git.
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)
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?
解决方案
This is a bug in Git; when using HTTPS it will use chunked encoding for uploads above a certain size. Those do not work.
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(分块)”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文