Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hanging at "POST git-receive-pack (chunked)"

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://[email protected]/acron0/project.git
Password for 'https://[email protected]':
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?

like image 768
Antony Woods Avatar asked May 28 '12 20:05

Antony Woods


3 Answers

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
like image 187
Scott Hooper Avatar answered Nov 11 '22 12:11

Scott Hooper


Probably your credentials. Use the git+ssh protocol instead of https.

like image 21
Adam Dymitruk Avatar answered Nov 11 '22 11:11

Adam Dymitruk


Using SourceTree to push to BitBucket I get this error once every few months. It turns out that I just have to wait an extra five minutes and it sorts itself out. It looks like it has hanged and the temptation is to just cancel and try again but maybe hang in there a bit longer. I know that this is answered already but my commits amounted to maybe a couple of hundred kb rather than the 40mb the original poster is talking about.

like image 12
amergin Avatar answered Nov 11 '22 11:11

amergin