Git and system variables in Windows

I get the notorious "git" is not recognized as an internal or external command, operating program or batch file "after installing msysgit for Windows.

This is not the first time this has happened; this happened when I tried to configure Python, but then I found the appropriate directory to indicate my python system variable, after which it worked.

I tried different git directories, but I was not able to create a system variable for git .

Does anyone know the location of the directory in which I must specify Windows in order to understand the git system variable on the command line?

+4
source share
2 answers

Strange: the only thing I need to make sure that after installing msysgit for my PATH link to the cmd directory of the specified msysgit installation.

Default:

  C:\Program Files\Git\cmd 

It contains a git.cmd script that is called by the correct executable.

+3
source

Reboot Windows. This is the only way to ensure that changes to the PATH environment variable are taken into account by all programs.

+3
source

All Articles