The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

TAGS
AUG Leaders

Atlassian Community Events