官网下载: https://git-scm.com/downloadsnode
参考,感谢网友分享: https://blog.csdn.net/crazy_cw/article/details/81629946git
安装流程:(加粗的字体为推荐项)windows
Next缓存
配置的含义,黑色表明的建议勾选安全
Additional icons: 附加图标服务器
on the Desktop: 在桌面上工具
Windows Explorer intergration: windows资源管理器右键菜单性能
Git Bash Here: 字体
Git GUI Here: spa
Git LFS(Large File Support): 大文件支持,
Associate .git* configuration files with the default text editor: 将.git配置文件与默认文本编译器相关联,勾选
Associate .sh file 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更新
选择中间,使用系统推荐的Vim做为Git的默认编译器
Use Git from Git Bash only: 这是最安全的选择,由于您的路径根本不会被修改。您只能从Git Bash中使用Git命令行工具。
Use Git from the Windows Command Prompt:这个选项被认为是安全的,由于它只向您的路径添加了一些最小的Git包,以免使用可选的Unix工具扰乱环境。您将可以从Git Bash和Windows命令提示符中使用Git。
Use Git and optional Unix tools from the Windows Command Prompt: Git和可选的Unix工具都添加到你的环境变脸中。警告: 这将覆盖windows工具,只有在了解了其选项后才使用此选项。
Use the OpenSSL library: 使用OpenSSL库,服务器证书将经过ca-bundle.crt file验证
Use the native Windows Secure Channel library: 使用本地Windows安全通道库
Checkout Windows-style, commit Unix-style line enddings:
在检出文件时,Git会将LF转换为CRLF。 当提交文本文件时,CRLF被转换为LF. 对于跨平台项目,windows推荐的设置。("core autocrlf" is "true")
Checkout as-is, commit Unix-style line enddings:
在检出文件时,Git不会执行任何转换,提交文件时,会将CRLF转换为LF, 对于跨平台项目,这是Unix上的推荐配置。("core autocrlf" is "input")
Chekout as-is, commit as-is:
在检出文件时,Git不会执行任何转换。对于跨平台项目,不推荐使用此选项("core autocrlf" is "false")
--[[ 所谓的LF是Mac和Unix平台的文件结尾的换行符,也就是\n,
而CRLF是Dos和Windows平台的文件结尾换行符,即\r\n。 若是项目在windows和Mac上同时使用,其文件提交时的换行符是不同的。
假若不一致,很容易出现全部内容在同一行或者其结尾出现~M的字符。为此,其Git的使用命令有: ]] -- 检出时将LF转换为CRLF, 提交时将CRLF转换为LF(windows推荐) $ git config --global core.autocrlf true -- 提交时转换为LF,检出时不转换(Unix推荐) $ git config --global core.autocrlf input -- 提交检出均不转换(没有跨平台那一说) $ git config --global core.autocrlf false
Use MinTTY (the default terminal of MSYS2):
使用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权限)。请注意,现有存储库不受此设置的影响。
剩下的就是开始安装...