win10 environment variables to configure git

'Git' is not an internal or external command, operable program or batch file.

 Solution:

 Probably go to Baidu search, because there is no reason to configure Git environment variables, but no concrete steps to solve, hereby record it.

 

Right View git installation directory:

 

Entry 

where git

 

II. Configuration Environment Variables

Right My Computer -> Properties

 

Click on Advanced System Settings -> Environment Variables -> select user variables or system variables Path, click Edit

 

 

 

 

According to Git installation directory, add the following address:

 

Git installed root directory, as shown below:

Reopen cmd command interface, enter the following command to test

 

Guess you like

Origin www.cnblogs.com/-mrl/p/11246666.html