git的安装方法(Git下载与安装图文教程)

一、下载(Git-2.39.0.2-64-bit.exe)

Git-2.39.0.2-64-bit.exe

官网下载:

https://git-scm.com/downloads

安装(Windows 10 专业版 64位操作系统)

1.以管理员身份运行Git-2.39.0.2-64-bit.exe,

2.设置安装路径

3.选择组件

单击Next

组件说明:

additional icons — on the desktop 图标组件:勾选后安装会在桌面生成Git的快捷方式

windows explorer integration — Git Bash Here 浏览源码的方式-Git基本:Git的基本必选

wi我爱线报网ndows explorer integration — Git GUI Here 浏览源码的方式-Git用户图形界面:更好的UI体验 (高级的浏览方法使用git-cheetah plugin插件)

Git LFS(large file support) 大文件支持:有上限(大概1G)需要增加可以付费

Associate .git* configuration files with the default text editor 将.git*配置文件与默认文本编辑器关联

Associate .sh files to be run wirh Bash 关联要在Bash中运行的.sh文件( 关联sha我爱线报网ll脚本文件)

Use a TrueType font in all console windows 在所有控制台窗口中使用TrueType字体

Check daily for Git for Windows updates 每天检查Git的Windows更新

(NEW!) Add a Git Bash Profile to Windows Terminal (新)向Windows终端添加Git配置文件

(NEW!)Scalar (Git add-on to manage large-scale repositories)(新)管理大型存储库的Git插件)

4.选择编辑器

Git编辑器说明

Use the 我爱线报网Nano editor by default:默认使用 Nano 编辑器

Use Vim (The ubiquitous text editor) as Gits default editor:使用 Vim 作为 Git 的默认编辑器

Use Notepad++ as Gits default editor:使用 Notepad++ 作为 Git 的默认编辑器

Use Visual Studio Code as Gits default editor:使用 Visual Studio Code 正式版本作为 Git 的默认编辑器

Use Visual Studio Code Insiders as G我爱线报网its default editor使用 Visual Studio Code 内部版本作为 Git 的默认编辑器

Use Sublime Text as Gits default editor:使用 Sublime Text 作为 Git 的默认编辑器

5.调整新存储库中初始分支的名称

默认不改变分支名称

6.设置运行路径环境

Use Git from Git Bash only — 只从Git Bash中使用Git

this is the safest choice as your PATH will not be modified at all.You will only be able to u我爱线报网se the Git command line tools from Git Bash(这是最安全的选择,因为您的环境路径根本不会被修改。您只能使用GitBash中的Git命令行工具)

Git from the command line and also from 3rd-party software — 来自命令行以及第三方软件的Git

This option is considered safe as it only adds some minimal Git wrappers to your PATH to avoid duttering your environment with opt我爱线报网ional Unix tools. You will be able to use Git from Git Bash,the Command Prompt and the Windows(这个选项被认为是安全的,因为它只向路径添加了一些最小的Git包装器,以避免使用可选的Unix工具破坏环境。您将能够从Git Bash、命令提示符和Windows中使用Git)

Use Git and optional Unix tools from the Command Prompt — 从命令提示符中使用Git和可选的Unix工具

Both Git and the optional Unix tools 我爱线报网will be added to your PATH(Git和可选的Unix工具都将添加到您的路径中)

7.选择SSH可执行文件

Which Secure Shell dient program would you like Git to use? 您希望Git使用哪个安全的Shell程序?

Use bundled OpenSSH 使用自带的OpenSSH

Use external OpenSSH 使用第三方的OpenSSH

8.选择HTTPS传输后端

Which SsL/TLS library would you like Git to use for HTTPS connections?您希望Git用我爱线报网于HTTPS连接的哪个SSL/TLS库?

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 a我爱线报网llows you to use your companys internal Root CA certificates distributed e.g. via Active Directory Domain Services(服务器证书将使用Windows证书存储库进行验证。此选项还允许您使用公司分发的内Root CA证书,例如通过Active Directory域服务)

9.配置结束行格式

How should Git treat line endings in text files?Git应该如何处理文本文件中的结束行?

Checkout Windows-style, commit Unix我爱线报网-style line endings 按Windows样式检查提交结束行

Checkout as-is, commit Unix-style line endings 按as-is样式检查,提交结束行。

10.终端模拟器选择页面,默认即可

11.选择“git pull”的默认行为

Default (fast-forward or merge).默认(快速转发或合并)

12.选择凭证存储模式,默认即可。

13.配置Git额外选择

14.配置实验选项

these features are developed actively. Would you like to try them?这些特征得到了积极的发展。你想我爱线报网试试吗?

Enable experimental support for pseudo consoles.启用对伪控制台的实验支持

Enable experimental built- in file system monitor 启用实验内置的文件系统监视器。

可以不选。

15.按WIN+R,输入cmd进入控制台,输入git -v 命令查看Git版本号

推荐阅读

给力项目线报网会员可免费下载 加入会员
友情提醒: 请尽量登录购买,防止付款了不发货!
QQ交流群:226333560 站长微信:qgzmt2
温馨提示:本站提供的一切软件、教程和内容信息都来自网络收集整理,仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负,版权争议与本站无关。用户必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序和内容,请支持正版,购买注册,得到更好的正版服务。我们非常重视版权问题,如有侵权请邮件与我们联系处理。敬请谅解!

给TA打赏
共{{data.count}}人
人已打赏
行业资讯

龙源期刊网官网杂志的刊号是什么样的(几百块的龙源刊你敢发吗?进来避雷!教你如何辨别期刊真假!)

2024-4-21 7:08:42

行业资讯

长盛基金管理有限公司排名(长盛基金|2024年权益市场机会在哪里?最新观点解析)

2024-4-21 7:37:21

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索