Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I push to git and force a maximum pack size?

Tags:

git

github

I'm pushing a very large repository to GitHub, and I'm getting an error saying that the pack exceeds the maximum allowed size:

git push
Counting objects: 2072164, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (731293/731293), done.
fatal: pack exceeds maximum allowed size2.00 GiB | 118 KiB/s      
error: pack-objects died of signal 13

Is there a way to force a maximum pack size when pushing? I've tried git repack --max-pack-size=1g -d -f -F -a before pushing. I've also tried git config pack.packSizeLimit 1g. Is there another way?

like image 373
Tim Mahoney Avatar asked Jan 21 '13 16:01

Tim Mahoney


1 Answers

No. You cannot change the pack size for a push directly.

See my answer on this question for an explanation.

like image 197
onionjake Avatar answered Sep 30 '22 10:09

onionjake