msysgit - sh.exe - fork: Permission denied - Vista

2020-03-06 17:48发布

问题:

I installed msysgit on other Windows machines with no problems. On this Vista 64 bit Ultimate box, I installed the 3 most recent versions of msysgit. On all three installs, when I do a "git bash here", I get exactly this on the command window:

sh.exe": fork: Permission denied
sh.exe"-3.1$

The git command doesn't work. I get the same permission denied message. Any clues as to how to fix this?

Update

Also, when I do "git gui here" - I get:

Cannot determine Git version.

couldn't execute "C\...\git-core\git.exe

Git Gui requires Git 1.5.0 or later

I'm using a version newer than 1.5.0.

回答1:

The usual way I install msysgit is:

  • not in C:\Program Files or C:\Program Files(x86)
    (That avoid any issue with the UAC mechanism: I had the same "permission denied" problem with eclipse, and this kind of program shouldn't be installed in Program Files anyway.)
  • with the option "Run Git from the Windows Command Prompt": minimal impact on the PATH, and avoid side-effect with an eventual Cygwin already installed.

It never failed to work this way.