The basic problem is that sometimes when I do
git pull upstream master
I get
remote: Counting objects: 172, done.
remote: Comp
I also faced same problem and restart of the system resolved it.
OK, I guess I should share. I have the same problem, but I have a workaround. The problem seems to be the length of the PATH. If I do a git pull, I get the fork failure:
$ git pull*emphasized text* 2 [main] git 7384 fork: child -1 - forked process 7420 died unexpectedly, retry 0, exit code -1073741515, errno 11 error: cannot fork() for rev-list: Resource temporarily unavailable error: Could not run 'git rev-list' remote: Counting objects: 728, done. remote: Compressing objects: 100% (456/456), done. 907550 [main] git 7384 fork: child -1 - forked process 7436 died unexpectedly, retry 0, exit code -1073741515, errno 11 error: cannot fork() for index-pack: Resource temporarily unavailable fatal: fetch-pack: unable to fork off index-pack
However, if I set the PATH to something really small before running git, it works:
$ PATH=/usr/bin git pull remote: Counting objects: 728, done. remote: Compressing objects: 100% (456/456), done. remote: Total 464 (delta 337), reused 9 (delta 6) Receiving objects: 100% (464/464), 153.36 KiB, done. Resolving deltas: 100% (337/337), completed with 107 local objects. From git://cmake.org/cmake
I would be interested if it works for any of you?
I get that some time has passed, but I found this searching for my own very similar issue, using the cygwin platform built into the MobaXterm app. Was pulling my nonexistent hair out trying to figure it out, in the end it was fixed by a simple restart.
I double verified that this worked with a second Windows 10 machine, a new installation of MobaXterm + git apps, and an attempt to pull from a github repo. Same error: "error: cannot fork() for index-pack: Resource temporarily unavailable" was achieved, and a simple computer reboot fixed it.
This is addressed here: http://cygwin.wikia.com/wiki/Rebaseall
In short, close all windows and run this:
C:\cygwin\bin\dash.exe -c '/usr/bin/rebaseall -v'
This fixes all related issues with forking. I had issues with forking aspell from emacs as well as git.
Instead of setting the PATH variable or using git's full path (once), this should work as well:
git=`which git`
git pull
This will assign git to it's full path for consecutive calls. Now, if git is used in another program(like make), it will be able to.