8

When i try to issue the command "git status" i get the below message. I am using the command line. Any idea how to fix it please:


fatal: mmap failed: Invalid argument

tkausl
  • 13,004
  • 2
  • 32
  • 48
AA2018-2020
  • 151
  • 3
  • 14
  • Duplicate of https://stackoverflow.com/questions/32776055/git-for-windows-version-2-5-3-not-able-to-push-changes perhaps? – matt Feb 20 '20 at 14:56
  • @matt Thanks! The solution in this didn't work for me. I have already tried it. – AA2018-2020 Feb 20 '20 at 15:09
  • Oh well, sorry about that. :( All I was able to gather from a search is that it's some kind of git-for-Windows issue, and that things can go wrong with insufficient free space or big repositories. I don't use Windows so I can't actually help. – matt Feb 20 '20 at 15:11
  • I had some large files that I have excluded from my repository. – AA2018-2020 Feb 20 '20 at 15:41
  • Yes, that's what the duplicates do suggest. – matt Feb 20 '20 at 15:46
  • Even after excluding the issue still occur. Any idea what alternative solution i have available. – AA2018-2020 Feb 20 '20 at 16:18

2 Answers2

14

For me, it was solved by letting OneDrive sync again. It was paused syncing when I got the error. https://stackoverflow.com/a/61033756/3718756

jhwblender
  • 171
  • 1
  • 7
3

In my case it was a large ZIP file into the repository (2,33GB). I resolved moving the ZIP file into a different folder (outside the repo)