$ git push
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
fatal: Out of memory, malloc failed (tried to allocate 4168062027 bytes)
fatal: sha1 file '<stdout>' write error: Broken pipe
error: remote unpack failed: unpack-objects abnormal exit
error: failed to push some refs to 'git@git-ba.efi.com:ProductizationAutomation.git'
udayak@udayak-w10lt MINGW64 /d/Git_ProductizationAutomation/ProductizationAutomation (master)
I am trying to push *.sql which is around 4Gb.
Can you help me get over this issue? Is there any limitation on the file size in the repository?
Hi Kurt,
Thanks for the quick response!
I'm trying to push to a git server.
Please help for the same.
Does git server mean bitbucket server?
If yes, than you could modify the startup script and change the setting for the maximum heap usable by bitbucket
https://confluence.atlassian.com/bitbucketserver/scaling-bitbucket-server-776640073.html
Cheers
Kurt
Hi Mangesh
you should check the client settings and adjust them accordingly
try increasing the packSizeLimit (the values might need to be higher than 1000m for you)
git config --global pack.windowMemory "1000m" git config --global pack.packSizeLimit "1000m" git config --global pack.threads "1"
Repacking the commit again
git repack -a -f -d
and try it again
Cheers
Kurt
since im trying to push around 4gb of file so whats value need to put here
git config --global pack.windowMemory "1000m" git config --global pack.packSizeLimit "1000m" git config --global pack.threads "1"
This is something that you might need to figure out bye yourself. Increasing it as needed
Cheers
Kurt
Recommended Learning For You
Level up your skills with Atlassian learning
Atlassian DevOps Essentials
Learn to manage the product lifecycle by building, automating, and improving processes with Atlassian's approach to DevOps.
Jira Automation
Reduce project complexity and optimize your team's processes through the power of automation.
Bitbucket Pipelines Configuration
Build better software and release more often by learning how to implement a CI/CD solution with Bitbucket Pipelines.