2

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.

Steve
  • 5,802
  • 12
  • 54
  • 76
  • Do you have Cygwin installed? – VonC Mar 13 '10 at 17:56
  • @VonC: msysgit works without Cygwin, that's why you use it in the first place.. – @Steve: What command are you actually using? `git bash` doesn't exist. – poke Mar 13 '10 at 17:57
  • @poke: true, but if you had Cygwin installed (independently from your msysgit installation), some side-effect might appear. Hence my question. And **"`git bash here`" does exist**, not as a command per se, but as a contextual menu to bring up a bash shell window on the current path. – VonC Mar 13 '10 at 18:01
  • @VonC - No Cygwin. Svn and TortoiseSvn are on the machine but I would think that has nothing to do with it. @poke - git --version doesn't work. Actually git anything doesn't work. I keep getting permission denied. I tried all 3 options on the screen that asks what kind of prompt. The last option, windows and unix, when I do git bash here, completely fails. – Steve Mar 13 '10 at 18:08
  • Is the git\cmd directory in your path? – poke Mar 13 '10 at 18:28
  • @poke - No, what do you mean, c:/program files (x86)/git/cmd? – Steve Mar 13 '10 at 18:35
  • Yeah, when I installed msysgit, it automatically added `C:\Program Files\Git\cmd` to the PATH (you had to select that you want to support custom shells during the install). – poke Mar 13 '10 at 18:40
  • I added it - still the same error. I tried adding bin too. On the install, I stuck with the first option - bash only though. – Steve Mar 13 '10 at 18:47
  • 1
    @Steve: uninstall, and retry the installation with option 2 "Run Git from the Windows Command Prompt": it won't prevent you to run git in a bash shell, but it might work better overall. – VonC Mar 13 '10 at 18:52
  • 1
    @Steve: try also to install it in a custom directory (not `C:\Program Files` or `C:\Program Files(x86)` but `C:\myTools\Git` for instance) – VonC Mar 13 '10 at 18:55
  • @VonC: Ding, ding, ding, ding! We have a winner. I combined both your steps, so not sure which did it, but I tried the win cmd prmpt before and it didn't work, so maybe it was the path. Really appreciate the help. – Steve Mar 13 '10 at 19:20
  • Looks good - I got the remote clone to work, so hopefully push and pulls will too. I actually started a repository in Mercurial. Hopefully that will wait till much later. – Steve Mar 13 '10 at 19:27
  • @Steve: all right, I have made an answer reflecting the "correct" steps ("correct" as in "actually working" ;) ). – VonC Mar 13 '10 at 19:48

1 Answers1

8

The usual way I install msysgit is:

It never failed to work this way.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • @Steve: I just saw http://groups.google.com/group/msysgit/browse_thread/thread/ae733d166dc4c8fa and I too would like to know the difference between "Git for Windows" and msysgit. I have always thought of msysgit as Git for Windows! – VonC Mar 14 '10 at 22:16
  • +10 if I could. Every time I switched branches, I was getting the permission denied error and a random number of files weren't getting written. I had to revert all changes before being able to continue. Uninstalling mysysgit and reinstalling to c:\git resolved the issue. – Jon Crowell Jan 23 '14 at 17:14