Git 的安装配置(windows)

官网下载: https://git-scm.com/downloads

参考,感谢网友分享: https://blog.csdn.net/crazy_cw/article/details/81629946

 

安装流程:(加粗的字体为推荐项)

《Git 的安装配置(windows)》

Next

《Git 的安装配置(windows)》

配置的含义,黑色代表的建议勾选

Additional icons: 附加图标

  on the Desktop: 在桌面上

Windows Explorer intergration:   windows资源管理器右键菜单

  Git Bash Here:  

  Git GUI Here: 

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更新

 《Git 的安装配置(windows)》

选择中间,使用系统推荐的Vim作为Git的默认编译器

《Git 的安装配置(windows)》

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工具,只有在了解了其选项后才使用此选项。

《Git 的安装配置(windows)》

Use the OpenSSL library: 使用OpenSSL库,服务器证书将通过ca-bundle.crt file验证

Use the native Windows Secure Channel library: 使用本地Windows安全通道库

《Git 的安装配置(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

《Git 的安装配置(windows)》

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之前,其窗口不能自由调整大小,并且只允许矩形文本选择。

《Git 的安装配置(windows)》

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权限)。请注意,现有存储库不受此设置的影响。

 

剩下的就是开始安装…

 

    原文作者:Code~
    原文地址: https://www.cnblogs.com/SkyflyBird/p/10750085.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞