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
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
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
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)
In my case I was able to get myself out of this loop when running git pull
by:
git fetch
git checkout -b foo
git reset --hard origin/master
git checkout -
git pull
In my case it was a large ISO file into the repository (3,7 GB). One way to push large files to a git repository is to use git-lfs (Git Large File Storage), which is an extension that allows you to store large binary files in a separate storage12.
To use git-lfs, you need to install git-lfs on your machine. Run "git lfs install" once per local repository. Select the large files you want to track with git lfs track '*.iso' (in my case), where iso is the file extension. This will create a .gitattributes file in the root directory of the repo.
Add, commit and push the files as usual with git add, git commit and git push. The large files will be pushed to the git-lfs storage, and only pointers to them will be pushed to the GitHub repository.
For more details, you can check the official documentation of git-lfs here: https://git-lfs.github.com/