Tim Mahoney
Tim Mahoney

Reputation: 680

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

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?

Upvotes: 9

Views: 13831

Answers (1)

onionjake
onionjake

Reputation: 4045

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

See my answer on this question for an explanation.

Upvotes: 6

Related Questions