git and system variables on Windows
Solution 1
Strange: the only thing I need to make sure after a msysgit installation is for my PATH
to reference the cmd
directory of said msysgit installation.
By default:
C:\Program Files\Git\cmd
It contains the git.cmd
script which will call the right executable.
Solution 2
Restart Windows. It's the only way to make sure that changes to PATH environmental variable are taken into account by all programs.
Kiwi
Updated on June 04, 2022Comments
-
Kiwi almost 2 years
I'm getting the infamous "'git' is not recognized as an internal or external command, operable program or batch file" after installing msysgit for Windows.
This is not the first time something like this happens; it happened when I tried to set up Python, too, but back then, I found the relevant directory to point my
python
system variable to, after which it worked.I've tried different git directories, but I haven't had any luck setting up a system variable for
git
.Does anyone know the location of the directory I have to point Windows to in order to understand the
git
system variable in the command prompt?