Windows10 under Git environment variable configuration

A. Determine the correct installation and can use Git

Right project directory, check the Git version:

 

 

 Input: git --version

 

 

 

II. Configuration Environment Variables

Right My Computer -> Properties

 

 

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

 

 

 Git find installation directory, add the following address:

 

 

 Git installed root directory, as shown below:

 III. Restart AS, test

 

 

 

Additional: Configuring global user name and mailbox

Desktop blank right -> choose Git Bash Here

 

 

 Configuring Username: 

git config --global user.name "your username"

Configuration E-mail:

git config --global user.email "your mailbox."

Viewing the configuration:

git config --list

Guess you like

Origin www.cnblogs.com/qingmuchuanqi48/p/12052289.html