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?
No. You cannot change the pack size for a push directly.
See my answer on this question for an explanation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With