5

Suddenly some of my git repos are failing with fatal: mmap failed: Operation timed out on executing git cli commands.

I was using github desktop , have been working on multiple branches on the repos. Stashed changes and moved between the branches. Suddenly one day i see github desktop complains with Cannot find repository , it was last seen at .

So, i executed the git cli commands and it seems the git repos got corrupted.

Any way to come out of this problem.

saurav
  • 5,388
  • 10
  • 56
  • 101

1 Answers1

2

This was seen before, mostly related to an OS-specific issue (like interrupted syscall on MacOS for instance)

GitHub Desktop includes its own Git, so try first to:

  • upgrade Git (outside of GitHub Desktop) to its latest version
  • check if the issue persists then (again, using that latest Git version, from a shell outside GitHub Desktop)
  • uninstall/reinstall GitHub Desktop.

If the issue persists, check if cloning the repository (in a separate folder) and importing your work from your previous local folder would be an acceptable workaround.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • thanks for the answer...first 3 steps did not work...will try cloning the repo again but then this would lose all the stashes and local changes... – saurav Apr 11 '23 at 18:00
  • @saurav You can clone it in another folder, outside your first clone. From there, you can import your work in progress from the first cloned repository to the second clone. – VonC Apr 11 '23 at 18:03