Git for version 2.5.3 of Windows, unable to push changes

I get errors below when I try to push changes (no memory problem or other problems are already mentioned in stackoverflow), errors disappeared when I uninstall the latest version and install

1.9.x

Verion Please think about this if you have the same problem.

  • fatal: mmap failed: no error
  • fatal: the far end unexpectedly hung up
  • fatal: the far end unexpectedly hung up
  • fatal: write error: file descriptor Bad
  • error: failed to click multiple links to
+3
source share
2 answers

This particular bug has just been fixed (or at least mitigated) with git -for-windows 2.6.2 (October 19, 2015)

We no longer exit the page file space when git retrieves large repositories.

(also applies to push)

See PR 486: Best mmap() emulation :

a simple git fetch will yield this error:

 fatal: mmap failed: No error fatal: write error: Invalid argument 

The reason was that a few bits of our mmap() emulation left room for improvement. This Pull request attempts to close a space.

This includes compat/win32mmap.c and this fix has not yet been updated up (in git/git )

+6
source

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 
+2
source

Source: https://habr.com/ru/post/920292/


All Articles