[Git] Windows Git and TortoiseGit installation tutorial (Git2.23.0, TortoiseGit2.8.0, language pack 2.8.0)

introduce

This is the journey of the editor's growth path, and also the editor's learning path. Hope to grow up with you guys!

Here are two of my favorite quotes:

To have the most simple life and the most distant dream, even if it will be cold tomorrow, the mountains will be high and the water will be far away, and the road will be far away.

Why should one work hard? The best answer I have ever seen is: because the things I like are expensive, the places I want to go are far away, and the person I love is perfect. Therefore, the editor would like to say: encourage each other!

Table of contents

1. Git download

1. Official website download

2. Install version

3. Installation steps

Step 1: Click on the downloaded installation package

Step two:

Step 3: Choose where to download

Step 4: Choose to install components

 Step Five: Select Start Menu Folder

 Step 6: Choose Git default editor

 The translation is as follows:

Step 7: Adjust your path environment variable

 The translation is as follows:

 Step 8: Select HTTPS backend transport

The translation is as follows:

 Step Nine: Configure a Terminal Emulator for Use with Git Bash

The translation is as follows:

 Step 10: Configure other additional options

The translation is as follows:

 Step 11: Configure test options

 Step 12: Download

2. Download TortoiseGit

1. Official website download

2. Install TortoiseGit

3. Installation steps

 first step:

Step two:

third step:

The translation is as follows:

Step 4: Choose a storage location, and some installation packages

The translation is as follows:

The translation is as follows:

The translation is as follows:

The translation is as follows:

3. Install the language pack (Sinicization pack)


1. Git download

1. Official website download


For this, you need to go to the Git official website to download the corresponding system software. The download address is Git (git-scm.com) or git-scm on Git for Windows
is the official Git, which contains installation packages and source codes for different systems and platforms. , while gitforwindows.org only has the installation package for windows system

2. Install version

The editor uses 2.23.0, so the subsequent installation steps are around the installation of 2.23.0

3. Installation steps

Step 1: Click on the downloaded installation package


Step two:


Step 3: Choose where to download

You can change it in the box, or click browse (browse) to find the location you want to download


Step 4: Choose to install components

Additional icons Additional icons

On the Desktop Adds icons to the desktop

Windows Explorer integration Windows Explorer integration

Git Bash Here

Git Bash Here

Select the above two to add these two functions to the right mouse button menu

Git LFS (Large File Support) Git large file support

The following two options are associated files

Associate .git* configuration files with the default text editor

Associate .git* configuration files with the default text editor

Associate .sh files to be run with Bash

Associate the .sh file to be run with Bash

Check daily for Git for Windows updates

Check for Git for Windows updates daily

(NEW!)Add a Git Bash Profile to Windows Terminal

(NEW!) Add Git Bash Profiles to Windows Terminal

The editor here still chooses the default


 Step Five: Select Start Menu Folder

Git in the box can be changed to another name, or click " Browse(浏览)..." to select another folder or Don't create a Start Menu foldertick " " to not want a folder


 Step 6: Choose Git default editor

There are 10 built-in editors in the Git installer for you to choose from, such as Atom, Notepad, Notepad++, Sublime Text, Visual Studio Code, Vim, etc. The default is Vim. After selecting Vim, you can go directly to the next step, but Vim is The pure command line is a bit difficult to operate and needs to be learned. If you choose another editor, you need to go to its official website to install it before proceeding to the next step. ( For other editors, just click on the location similar to the blue part in the figure below to go to the official website to download ) You also need to configure environment variables for it in the path
 

The editor chose the default editor

 The translation is as follows:

  • Use the Nano editor by default use the Nano editor by default
  • Use Vim (The ubiquitous text editor) as Git's default editor Use Vim (The ubiquitous text editor) as Git's default editor
  • Use Notepad++ as Git's default editor Use Notepad++ as Git's default editor
  • Use Visual Studio Code as Git's default editor Use Visual Studio Code as Git's default editor

Step 7: Adjust your path environment variable

 The translation is as follows:

Use Git from Git Bash only 
This is the most cautious choice as your PATH will not be modified at all. You w only be able to use the Git command line tools from Git Bash.


Only use Git from Git Bash
This is the most prudent option, as your PATH will not be modified at all. You will only be able to use the Git command line tools in Git Bash.


Git from the command line and also from 3rd-party software
(Recommended) This option adds only some minimal Git wrappers to your PATH to avoid cluttering your environment with optional Unix tools.
You will be able to use Git from Git Bash, the Command Prompt and the Windov PowerShell as well as any third-party software looking for Git in PATH.


Git from the command line as well as third-party software
(recommended) This option only adds some minimal Git wrappers to the PATH to avoid cluttering the environment with optional Unix tools.
You'll be able to use Git from Git Bash, Command Prompt, and Windov PowerShell, as well as any third-party software that looks for Git in your PATH.


Use Git and optional Unix tools from the Command Prompt 
Both Git and the optional Unix tools will be added to your PATH.
Warning: This will override Windows tools like "find"and "sort". Only use this option if you understand the implications.


Using Git and optional Unix tools from the command prompt
Git and optional Unix tools are added to your PATH.
WARNING: This will override Windows tools such as "find" and "sort". Use this option only if you understand its implications.

Option one: 仅从 Git Bash 使用 Git. This means that you can only use Git through Git Bash after Git installation, and no other way.

Option two: 从命令行以及第三方软件进行 Git. This is third-party support on the first basis, and you will be able to  use Git from any third-party software from ,  and . It is recommended to use this. Git Bash命令提示符(cmd) Windows PowerShell可以从 Windows 系统环境变量中寻找 Git

Option three: 使用命令提示符使用 Git 和可选的 Unix 工具. This method is suitable for people who know more about this to choose.


 Step 8: Select HTTPS backend transport

The translation is as follows:

use the OpenSSL library 
Server certificates will be validated using the ca-bundle. crt file.


Using the OpenSSL library
The server certificate will be verified using the ca-bundle.crt file.
    
Use the native Windows Secure Channel library 
Server certificates will be validated using Windows Certificate Stores.
This option also allows you to use your company's internal Root CA certificates distributed eg via Active Directory Domain Services.


Use the native Windows secure channel library
The server certificate will be validated using the Windows certificate store.
This option also allows you to use an internal root CA certificate that is distributed within your company, for example through Active Directory Domain Services.

The difference between the above two options

What is the difference between OpenSSL and the native windows secure channel library - Stack Overflow (stackoverflow.com)

This answer is the answer in the link above

If you are using git in an organization with an enterprise managed certificate, you need to use a secure channel. If you only use git to access public repositories like GitHub, or your organization doesn't manage its own certificates, then you can use either SSL backend (they're just different implementations of the same protocol).

Starting with version 7.56.0, curl supports compiling backends with multiple SSLs.

This patch adds the Git side of that functionality: Git for Windows can now choose the backend for the SSL runtime by setting http.sslBackend to "openssl" or "schannel".

This comes in handy on Windows, since secure channels ("schannels") are a native solution, accessing the Windows credential store, allowing enterprise-wide management of certificates. For historical reasons, Git for Windows still needs to support OpenSSL, as it has previously been the only supported SSL backend in Git for Windows for almost a decade.

This patch has been in Git for Windows for over a year and is considered mature.

 In other words, as an ordinary user, just use Git to visit websites such as Github, GitLab, etc., then choose option 1. If you need something else, then option two is also a good choice.


 Step Nine: Configure a Terminal Emulator for Use with Git Bash

The translation is as follows:

Use MinTTY(the default terminal of MSYS2) 
Git Bash will use MinTTY as terminal emulator, which sports a resizable window
non-rectangular selections and a Unicode font.Windows console programs(such
as interactive Python) must be launched via 'winpty' to work in MinTTY.


Using MinTTY (the default terminal for MSYS2)
Git Bash will use MinTTY as a terminal emulator with a resizable window non-rectangular selection and a Unicode font.
Windows console programs (such as interactive Python) must be started with "winpty" to run in MinTTY.

Use Windows' default console 
window Git will use the default console window of Windows("cmd.exe"), which works v
with Win32 console programs such as interactive Python or node. js, but has a
very limited default scroll-back,needs to be configured to use a Unicode font in 
order to display non-ASCII characters correctly, and prior to Windows 10 its 
window was not freely resizable and it only allowed rectangular text selections.


Use Windows' default console window
Git will use Windows' default console window ("cmd.exe"), which can be 
used with Win32 console programs such as interactive Python or node.js, but the default fallback is very Limited, requires it to be configured to use a Unicode font to display non-ASCII characters correctly, and prior to 
Windows 10, its window was not resizable and only allowed selection of rectangular text.


 Step 10: Configure other additional options

The translation is as follows:

  • Enable file system caching Enable file system caching File system data will be read in batches and cached in memory for certain operations ("core.fscache" set to "true"). This provides a significant performance boost.
  • Enable Git Credential Manager Git Credential Manager for Windows provides secure Git credential storage for Windows, most notably multi-factor authentication support for Visual Studio Team Services and GitHub. (Requires .NET Framework v4.5.1 or later).
  • Enable symbolic links Enable symbolic links Enable symbolic links (requires SeCreateSymbolicLink permission). Note that existing repositories are not affected by this setting.


 Step 11: Configure test options

I didn't choose here

Enable experimental,built-in add  -i/-p

To enable experimental, builtins add -i/-p


 Step 12: Download

After completing the above steps, the installation is complete

Right-click on the blank page or the desktop to see the red box, which means the installation is successful


2. Download TortoiseGit

1. Official website download

Download – TortoiseGit – Windows Shell Interface to Git

Download the version you need here, as well as the Chinese language pack

2. Install TortoiseGit

The editor installed TortoiseGit-2.8.0.0, and the subsequent installation steps are based on TortoiseGit-2.8.0.0.

3. Installation steps

 first step:

Step two:

 

third step:

The translation is as follows:

Step 4: Choose a storage location, and some installation packages

The translation is as follows:

Choose storage location

 All of them were red × before, click on the red ×, select the first one, and download some installation packages of git

download

Completing the above steps means that the installation is complete. If the installation is successful, the following three things will appear (this is the Chinese version of the editor, continue to read, you can see the tutorial for installing the Chinese package)

Right click on a blank page or desktop

After the installation is complete, the following page will pop up. For the first installation, there is only English option

 installation guide

The translation is as follows:

This address is your environment variable in the path, and the system will automatically detect it. Generally, it does not need to be filled in automatically, just go to the next step

Enter your username and email here

The translation is as follows:


The translation is as follows:

3. Install the language pack (Sinicization pack)

 

 

You can change the language here, otherwise you need to go to the settings to change it yourself

Link: https://pan.baidu.com/s/1dMrJZKDDGUecCJugwEVvWQ?pwd=dfcl 
Extraction code: dfcl 

This is the installation package I used

The above is the content of the editor's practice, I hope it can help everyone, thank you for watching! ! !

Reference article: Git detailed installation tutorial (detailed explanation of each step of the Git installation process)_git installation_mukes' blog-CSDN blog https://blog.csdn.net/mukes/article/details/115693833 Git installation-know (zhihu .com) https://zhuanlan.zhihu.com/p/385714301#:~:text=%E9%99%84%E8%AF%91%E6%96%87%EF%BC%9A%20%5Bx %5D%20Use%20the%20OpenSSL%20library%20%E4%BD%BF%E7%94%A8%20OpenSSL,Channel%20library%20%E4%BD%BF%E7%94%A8%E6%9C%AC %E5%9C%B0%20Windows%20%E5%AE%89%E5%85%A8%E9%80%9A%E9%81%93%E5%BA%93%20%E6%9C%8D%E5 %8A%A1%E5%99%A8%E8%AF%81%E4%B9%A6%E5%B0%86%E4%BD%BF%E7%94%A8%20Windows%20%E8%AF%81 %E4%B9%A6%E5%AD%98%E5%82%A8%E9%AA%8C%E8%AF%81%E3%80%82

Guess you like

Origin blog.csdn.net/weixin_60387745/article/details/130363703
Recommended