Git download installation and configuration
download and install
First go to the official website to download.
But it always failed to download, and then I downloaded it with the help of Thunder.
After downloading, double-click to install: (basically, no-brain next)
right-click on the folder or computer desktop, and if it appears Git GUI Here
, Git Bash Here
it means the installation is successful.
configuration
Git Bash: Unix and Linux-style command line, recommended.
basic command | effect |
---|---|
git config -l | View all configurations about git under the current project |
clear | to clear |
git config --system --list | View system configuration |
git config --global --list | View the user's global configuration |
git --version | Check the git version |
Note: All configuration files are saved locally.
The system configuration file is saved in: Git\etc\gitconfig file
The user's configuration file is saved in: C:\Users\Administrator.gitconfig
Set username and email: (must do this step)
git config --global user.name "用户名"
git config --global user.email misszhao_16@163.com