编程开源技术交流,分享技术与知识

网站首页 > 开源技术 正文

Git下载与安装图文教程(git下载地址)

wxchong 2024-07-22 22:27:23 开源技术 13 ℃ 0 评论

一、下载(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.选择组件

组件说明:

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

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

windows 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文件( 关联shall脚本文件)

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 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 内部版本作为 Git 的默认编辑器

Use Sublime Text as Git's 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 use 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 optional 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 allows you to use your company's 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版本号

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表