Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Large git rep push error

Marta Rossi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 31, 2024

Hello, I have a quite large rep to push to github using Sourcetree (about 13Gb - it's an Unreal Engine + Max/MSP project).
When I push the main I get those errors:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin main:main
fatal: mmap failed: Invalid argument
fatal: the remote end hung up unexpectedly
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly

For what I understand on github you can upload up to 15Gb, but I'd probably need LFS? First time using Sourcetree, so any advice greatly appreciated.

Thanks

1 answer

0 votes
Martin Runge
Community Champion
June 15, 2026

Hi @Marta Rossi

Welcome to the Atlassian Community!

Your 13GB push likely fails due to memory limits or network timeouts. Pushing a large initial commit over HTTPS causes a 'mmap failed' error when Git runs out of memory during packing. Using Git LFS is essential for your Unreal Engine and Max/MSP project.

GitHub's 100MB file limit makes storing large assets directly in Git problematic, bloating your repo and hurting performance.

I would set up Git LFS in your repository first by going to Repository > Git LFS > Initialize Repository in Sourcetree, then track your heavy asset formats like .uasset, .umap, or .fbx  before making any fresh commits.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events