Git installed under Windows10
点关注不迷路,欢迎再访!
table of Contents
- Git installed under Windows10
- The first step: start with the official website to download the latest version of Git
- Step 2: Run the installation package git
- Step 3: Install configuration window
- Step 4: Select the default editor "Git use of window
- Step five: point adjustment Path environment variable
- Step Six: Select HTTPS transport backend
- Step 7: Configure line endings
- Step 8: Configure terminal simulator
- Step 9: Configuring additional options
- Step 10: Use the default configuration, click on "Install" to begin the installation
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
Step 2: Run the installation package git
Step 3: Install configuration window
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
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
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
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 。
第七步:配置行结束符
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”)
第八步:配置终端模拟器
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之前,其窗口不能自由调整大小,并且只允许矩形文本选择。
第九步:配置额外选项
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权限)。请注意,现有存储库不受此设置的影响。