Git installed under Windows10

Git installed under Windows10

   点关注不迷路,欢迎再访!		

Git is a distributed version control system open source, can be effective, high-speed processing from very small to very large project version management. Specific steps are as follows:

The first step: start with the official website to download the latest version of Git

Official website address: https: //git-scm.com/downloads

! [Insert Picture description here] (https://img-blog.csdnimg.cn/20191208205715952.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM5NDQzMDUz,size_16,color_FFFFFF,t_70)
Here Insert Picture Description

Step 2: Run the installation package git

Here Insert Picture Description

Step 3: Install configuration window

Here Insert Picture Description

Additional icons 附加图标
​	On the Desktop 在桌面上
Windows Explorer integration  Windows资源管理器集成鼠标右键菜单
​	Git Bash Here
​	Git GUI Here
Git LFS (Large File Support)  大文件支持
Associate .git* configuration files with the default text editor  将 .git 配置文件与默认文本编辑器相关联
Associate .sh files to be run with Bash  将.sh文件关联到Bash运行
Use a TrueType font in all console windows  在所有控制台窗口中使用TrueType字体
Check daily for Git for Windows updates  每天检查Git是否有Windows更新

Step 4: Select the default editor "Git use of window

Here Insert Picture Description

Use the Nano editor by default  默认使用 Nano 编辑器
Use Vim (The ubiquitous text editor) as Git's default editor  使用 Vim 作为 Git 的默认编辑器
Use Notepad++ as Git's default editor  使用 Notepad++ 作为 Git 的默认编辑器
Use Visual Studio Code as Git's default editor  使用 Visual Studio Code 作为Git 的默认编辑器
Use Visual Studio Code Insiders as Git's default editor  使用Visual Studio Code Insiders 作为 Git 的默认编辑器

Step five: point adjustment Path environment variable

Here Insert Picture Description
Use Git from Git Bash only
this is the safest choice because your PATH will not be modified. You can only use the Git Git Bash command-line tool.

Use Git from the Windows Command Prompt
This option is considered to be safe because it only added to some of the smallest package Git PATH, in order to avoid confusion with the optional tool for Unix environments. You will be able to use Git Git Bash and from the Windows command prompt.

Use Git and optional Unix tools from the
Windows Command Prompt from the Windows command prompt using Git and optional Unix tools
Git and optional Unix tools will be added to your computer's PATH
Warning: this will overwrite the Windows tools, such as " find and sort ". Only use this option only after understanding its meaning.

Step Six: Select HTTPS transport backend

Here Insert Picture Description
Use the OpenSSL library
using the OpenSSL library
server certificate will use ca-bundle.crt file for verification.

Use the native Windows Secure Channel library
使用本地 Windows 安全通道库
服务器证书将使用Windows证书存储验证。此选项还允许您使用公司的内部根CA证书,例如, 通过Active Directory Domain Services 。

第七步:配置行结束符

Here Insert Picture Description
Checkout Windows-style,commit Unix-style line endings
在检出文本文件时,Git会将LF转换为CRLF。当提交文本文件时,CRLF将转换为LF。 对于跨平台项目,这是Windows上推荐的设置(“core.autocrlf”设置为“true”)

Checkout as-is , commit Unix-style line endings
在检出文本文件时,Git不会执行任何转换。 提交文本文件时,CRLF将转换为LF。 对于跨平台项目,这是Unix上的推荐设置 (“core.autocrlf”设置为“input”)

Checkout as-is,commit as-is
在检出或提交文本文件时,Git不会执行任何转换。对于跨平台项目,不推荐使用此选项(“core.autocrlf”设置为“false”)

第八步:配置终端模拟器

Here Insert Picture Description
Use MinTTY (the default terminal of MSYS2)
Git Bash将使用MinTTY作为终端模拟器,该模拟器具有可调整大小的窗口,非矩形选区和Unicode字体。 Windows控制台程序(如交互式Python)必须通过’winpty’启动才能在MinTTY中运行。

Use Windows’ default console window
Git将使用Windows的默认控制台窗口(“cmd.exe”),该窗口可以与Win32控制台程序(如交互式Python或node.js)一起使用,但默认的回滚非常有限,需要配置为使用unicode 字体以正确显示非ASCII字符,并且在Windows 10之前,其窗口不能自由调整大小,并且只允许矩形文本选择。

第九步:配置额外选项

Here Insert Picture Description
Enable file system caching
启用文件系统缓存
文件系统数据将被批量读取并缓存在内存中用于某些操作(“core.fscache”设置为“true”)。 这提供了显着的性能提升。

Enable Git Credential Manager
启用Git凭证管理器
Windows的Git凭证管理器为Windows提供安全的Git凭证存储,最显着的是对Visual Studio Team Services和GitHub的多因素身份验证支持。 (需要.NET Framework v4.5.1或更高版本)。

Enable symbolic links
启用符号链接
启用符号链接(需要SeCreateSymbolicLink权限)。请注意,现有存储库不受此设置的影响。

第十步:使用默认配置,直接点击“Install”开始安装

Here Insert Picture Description

发布了101 篇原创文章 · 获赞 33 · 访问量 2万+

Guess you like

Origin blog.csdn.net/qq_39443053/article/details/103449005
Recommended