Git nanny level installation tutorial

1. Where to download

1. Official website (with the latest version): https://git-for-windows.github.io/
2. The version installed when I was studying, link: https://pan.baidu.com/s/1uAoahd6And8y6ecRunl-Uw? pwd=obdn
extraction code: obdn

2. Installation

2.1 Specific installation steps

1. Double-click after downloading Git-2.23.0-64-bit.exe, a security warning will appear, click run.
Insert image description here
2. Browse the agreement, next step
Insert image description here
3. Installation directory, required disk space, next step
Insert image description here
4. Git Bash needs to be installed, others can be defaulted, next step
Insert image description here
5. Start menu, next step
Insert image description here

6. Default editor, next step
Insert image description here

7. Select the execution environment for Git commands

● It is recommended to choose the first one here, which is the command line window of a single user Git.
● It is not recommended to mix it with the Windows command line window.

Insert image description here

8. HTTPS transmission: use SSL transmission protocol
Insert image description here

9. In the "Configuring the line ending conversions" option,

The first option: If it is a cross-platform project, install it on the Windows system.
The second option: If it is a cross-platform project, install it on the Unix system.
The third option: Non-cross-platform project.

Insert image description here

10. In the "terminal emulator" option,

First option: Use a dedicated Git window ( 推荐)
Second option: Use the Windows cmd command line window.
Insert image description here

11. In the "Configuring extra" option, just turn on file caching by default ( 推荐)
Insert image description here
12. The new function is not stable yet, so uncheck it and start the installation
Insert image description here
. 13. The installation is completed
Insert image description here

2.2 Set global user signature

1. After the installation is completed, you can open the Git command line window by right-clicking in any file directory - Git Bash Here
Insert image description here
2. Git is a distributed version control system, so you need to fill in the user name and email address as an identifier - that is:用户签名

2.1. Description
The function of signature is to distinguish the identities of different operators. The user's signature information can be seen in the submission information of each version to confirm who made this submission.
注意: Setting the user signature here has nothing to do with the account you will use to log in to GitHub (or other code hosting centers) in the future.
2.2. Command:

git config --global user.name "用户名"
git config --global user.email "用户邮箱"

● --global indicates global attributes, which are shared by all git projects
● View configuration information: git config --list
● Under the current login ** 系统用户路径, generate the ~/.gitconfig hidden file, in which you can see the information just set. If you do not need to set the command, you can also directly open the file to set it.

Guess you like

Origin blog.csdn.net/qq_52495761/article/details/135400783
Recommended