Win7下 Git下载及安装

编程知识 更新时间:2023-04-17 12:45:22

Git 2.19.0下载及安装

  • Git 2.19.0下载及安装
      • 一、Git下载地址 https://git-scm/downloads
      • 二、安装
        • 1、进入安装页面
        • 2、选择安装位置
        • 3、选择安装组件
        • 4、开始菜单创建目录
        • 5、选择Git使用的默认编辑器
        • 6、adjusting your PATH environment
        • 7、选择HTTPS传输后端
        • 8、配置行结束转换:选择提交的时候换行格式
        • 9、配置终端模拟器以与 Git Bash 一起使用
        • 10、配置额外的选项
        • 11、configure experimental options:配置实验选项
        • 12、安装中
        • 13、安装完成:completing the Git Setup Wizard
      • Win7下 NET Framework 4.6装不上尝试解决办法

一、Git下载地址 https://git-scm/downloads

  • 根据自己的电脑系统选择下载32位版本或者64位版本

二、安装

1、进入安装页面

2、选择安装位置

3、选择安装组件

一般按上图勾选即可

  • 勾选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更新

4、开始菜单创建目录

设置开始菜单中快捷方式的目录名称, 也可以选择不在开始菜单中创建快捷方式。

5、选择Git使用的默认编辑器

一般选择vim,也可根据你自己的习惯改变。

  • 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 的默认编辑器

6、adjusting your PATH environment

配置PATH环境:一般选择Use Git from Git Bash only或Use Git from the Windows Command Prompt。

  • Use Git from Git Bash only:
    This is the safest choice as your PATH will not be modified at all.You will only be able to use the Git command line tools form Git Bash.
    这是最安全的选择,因为您的PATH根本不会被修改。您只能使用 Git Bash 的 Git 命令行工具。

  • Use Git from the Windows Command Prompt:
    This option is considered safe as it only adds some minimal Git wrappers to your PATH to avoid cluttering your environment with optional Unix tools . You will be able to use Git from both Git Bash and the Windows Command Prompt.
    这个选项被认为是安全的,因为它只向PATH添加一些最小的 Git包,以避免使用可选的Unix工具混淆环境。 您将能够从 Git Bash 和 Windows 命令提示符中使用 Git。

  • Use Git and optional Unix tools from the Windows Command Prompt
    从Windows命令提示符使用Git和可选的Unix工具
    Both Git and the optional Unix tools will be added to you PATH
    Git和可选的Unix工具都将添加到您计算机的 PATH 中
    Warning:This will override Windows tools like “find and sort”.Only use this option if you
    understand the implications.
    警告:这将覆盖Windows工具,如 “ find 和 sort ”。只有在了解其含义后才使用此选项。

7、选择HTTPS传输后端

  • Use the OpenSSL library,一般默认选择此项。
    使用 OpenSSL 库
    Server certificates will be validated using the ca-bundle.crt file.
    服务器证书将使用ca-bundle.crt文件进行验证。

  • Use the native Windows Secure Channel library
    使用本地 Windows 安全通道库
    Server certificates will be validated using Windows Certificate Stores.This option also allows you to use your company’s internal Root CA certificates distributed e.g. via Active Directory Domain Services.
    服务器证书将使用Windows证书存储验证。此选项还允许您使用公司的内部根CA证书,例如, 通过Active Directory Domain Services 。

8、配置行结束转换:选择提交的时候换行格式

  • Checkout Windows-style,commit Unix-style line endings:一般选择此项
    检查出windows格式转换为unix格式:将windows格式的换行转为unix格式的换行再进行提交。
    Git will convert LF to CRLF when checking out text files.When committing text files,CRLF will be converted to LF .For cross-pltform projects,this is the recommended setting on Windows (“core.autocrlf” is set to “true”)
    在检出文本文件时,Git会将LF转换为CRLF。当提交文本文件时,CRLF将转换为LF。 对于跨平台项目,这是Windows上推荐的设置(“core.autocrlf”设置为“true”)

  • Checkout as-is , commit Unix-style line endings
    检查出原来格式转为unix格式:不管什么格式的,一律转为unix格式的换行再进行提交。
    Git will not perform any conversion when checking out text files. When committing text files, CRLF will be converted to LF. For cross-platform projects,this is the recommended setting on Unix (“core.autocrlf” is set to “input”)
    在检出文本文件时,Git不会执行任何转换。 提交文本文件时,CRLF将转换为LF。 对于跨平台项目,这是Unix上的推荐设置 (“core.autocrlf”设置为“input”)

  • Checkout as-is,commit as-is
    不进行格式转换 : 不进行转换,检查出什么,就提交什么。
    Git will not perform any conversions when checking out or committing text files.Choosing this option is not recommended for cross-platform projects (“core.autocrlf”is set to “false”)
    在检出或提交文本文件时,Git不会执行任何转换。对于跨平台项目,不推荐使用此选项(“core.autocrlf”设置为“false”)

9、配置终端模拟器以与 Git Bash 一起使用

一般选择第一项:Use MinTTY (the default terminal of MSYS2)。

  • 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.
    Git Bash将使用MinTTY作为终端模拟器,该模拟器具有可调整大小的窗口,非矩形选区和Unicode字体。 Windows控制台程序(如交互式Python)必须通过’winpty’启动才能在MinTTY中运行。

  • Use Windows’ default console window
    Git will use the default console window of Windows (“cmd.exe”),which works well 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 aUnicode font in order to display non-ASCII characters correctly,and prior to Windows 10 its windows was not freely resizable and it only allowed rectangular text selections.
    Git将使用Windows的默认控制台窗口(“cmd.exe”),该窗口可以与Win32控制台程序(如交互式Python或node.js)一起使用,但默认的回滚非常有限,需要配置为使用unicode 字体以正确显示非ASCII字符,并且在Windows 10之前,其窗口不能自由调整大小,并且只允许矩形文本选择。

10、配置额外的选项

一般勾选前两项:Enable file system caching和Enable Git Credential Manager

  • Enable file system caching:启用文件系统缓存
    File system data will be read in bulk and cached in memory for certain operations (“core.fscache” is set to “true”). This provides a significant performance boost.
    文件系统数据将被批量读取并缓存在内存中用于某些操作(“core.fscache”设置为“true”)。 这提供了显着的性能提升。

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

  • Enable symbolic links:启用符号链接
    Enable symbolic links (requires the SeCreateSymbolicLink permission).Please note that existing repositories are unaffected by this setting.
    启用符号链接(需要SeCreateSymbolicLink权限)。请注意,现有存储库不受此设置的影响。

11、configure experimental options:配置实验选项


直接点安装 install

12、安装中

13、安装完成:completing the Git Setup Wizard

Win7下 NET Framework 4.6装不上尝试解决办法

1、 首先要确保系统版本为Service Pack 1及以上,不是,打开update中心进行更新。

2、按键盘“win+R”打开电脑系统搜索对话框,输入“services.msc”命令,打开系统服务界面,在里面找到“windows update” 右键点击停止;或者在对话框输入“cmd” 进入dos命令窗口, 输入“ net stop WuAuServ” 命令,停止服务

3、最后在本地C盘windows中找到softwareDistribution文件夹并改其文件重复名为SDold。再返回计算机管理服务,“启动”“windows update”,再点开安装环境安装包安装就可以了。

更多推荐

Win7下 Git下载及安装

本文发布于:2023-04-14 00:03:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/5494e928407b4c5424e1c43c8e0fb26a.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Git

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 74102文章数
  • 14阅读数
  • 0评论数