Git download installation and configuration

Git download installation and configuration

download and install

First go to the official website to download.
1
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)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
right-click on the folder or computer desktop, and if it appears Git GUI Here, Git Bash Hereit 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

Guess you like

Origin blog.csdn.net/qq_42757191/article/details/123444629