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.
VonC
The usual way I install msysgit is:
- not in
C:\Program Files
orC:\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 inProgram 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.
来源:https://stackoverflow.com/questions/2439336/msysgit-sh-exe-fork-permission-denied-vista-64-bit