I've recently reinstalled Git, and I just can't get it to run off the native Windows command prompt anymore. I'm sure it is in Path
environment variable, as you can see:
C:\Users\Ult>where git
C:\Program Files (x86)\Git\cmd\git.exe
C:\Users\Ult>git --version
'git' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Ult>"C:\Program Files (x86)\Git\cmd\git.exe" --version
git version 1.9.4.msysgit.2
So far I've tried:
- Close and reopen the command prompt;
- Reinstall Git once again;
- Reboot computer;
- Edit the
Path
environment variable, movingC:\Program Files (x86)\Git\cmd
to the beginning of it.
I've already looked around the web and in SU and couldn't find a solution. Please don't close as a dupe of the existing similar questions which are just about not having Git in the Path
or reopening cmd.exe
. I've already tried these and they do not solve the issue.
I need to be able to run Git off the native cmd.exe
in order for some of my IDE/text editors' Git plugins to work properly. That means I can't just use Git Bash (which works fine).
Running on Windows 7 x64 Ultimate.
Best Answer
Finally found the actual issue: there was a
"
in thePATH
environment variable.Everything after
"
was ignored when trying to run executables fromcmd.exe
, although thewhere
command could still find them.