I also received a similar error message when trying to create an entire folder structure in the new git repository: "fatal: mmap failed: Invalid argument". This error has occurred, although I am using git version 2.8.
After further study, I found that the best way to debug the problem was to use git add with the advanced option:
git add -A -v
That way, I could see which file caused the error. With -v, I could see that git add failed in the zip file, which was about 17 MB. So I excluded the zip files. Which I really don't need to keep track of.
Then it crashes again with the same message in a file named "user.fdb.new", which was renamed to the Firebird database file, which was only about 2 MB. So I excluded this whole folder. Then I was able to complete the production.
I'm not sure what the problem is, but it seems to be related to the file type, maybe not just the file size.
In the end, my git repository included about 1,600 files distributed in 150 folders and combining what I thought was about 2 GB, although the resulting git repository is only about 24 MB. I think the largest file is 12 MB.
I run:
git version 2.8.1.windows.1 on Windows XP SP3
source share