20211205_Git update installation detailed tutorial

Recently, I suddenly want to learn git. I plan to install it and found that I have already installed it, but the previous version is 2.16.2. I plan to update the latest Git. The following are the detailed steps. If you have any questions, please point them out. Thank you for your support!

1. On the official website https://git-scm.com/ , find Downloads at the bottom of the home page to download the corresponding system (MAC, Windows, Linux/Unix) installation package (currently the latest version is 2.34.1)

 2. Find the downloaded installation package (I downloaded it for Windows system Git-2.34.1-64-bit.exe), double-click to open it and click Next .

3. Select the installation components

The meaning of checking each component:

 √   Additional icons On the Desktop: add icons on the desktop

 √   Windows Explorer integration Git Bash Here/Git GUI here: Integrating Git Bash and Git GUI in Windows Explorer

 √   Git LFS (Large File Support): Git large file support

 √   Associate .git* configuration files with the default text editor: associate the .git* configuration files with the default text editor

 √   Associate .sh files to be run with Bash: Associate .sh files to be run with Bash

 √   Check daily for Git for Windows updates: Check the Windows version of Git updates daily

 √ ( NEW! )Add a Git Bash Profile to Windows Terminal: Add the configuration file of Git Bash to the configuration file in the Windows terminal ( this is a new function of version 2.34.1, which saves the need to add it separately )

You can check according to the above screenshot, or you can check the components you need according to the meaning of the components, and then click Next .

4. Adjust the name of the initial branch in the new repository.

Choose a difference:

 √   Let Git Decide: Desk Git decides by itself, and the current default is master.

 √   Override the default branch name for new repositories: fill in the default branch by yourself, commonly used are "main", "truck", "development", here I choose main

You can choose the initial name according to your preferences, and then click Next .

5. Select the SSH executable file

Novices can choose to open SSH, and then click Next .

 6. Choose the default behavior of 'git pull'

Behavior introduction:

 √   Default: fast forward or merge.

 √   Rebase: Rebase.

√   Only ever fast-forward: only fast forward.

This selection is fine by default, and then click Next .

7. Configure experiment options.

√   Enable experimental support for pseudo consoles: Enable experimental support for pseudo consoles

        this allows running native console programs like Node or Python in a Git Bash window without using winpty, but it still has known bugs. , but it still has known bugs.

√   Enable experimental built-in file system monitor: enable experimental built-in file system monitor

        Automatically run a built-in file system watcher to speed up common operations such as git add in worktrees containing many files.

It is not recommended for Xiaobai to choose the function under development, and then click Next .

8. Wait for the installation to complete

At the end of the installation, you will be asked if you want to open the release node. After opening, you can see what functions are updated and what bugs are fixed in each version.

ReleaseNotes.html

Then check and find that the installation is over, and then I plan to go to the rookie to learn how to use it.

Guess you like

Origin blog.csdn.net/m0_37802038/article/details/121726357