Git下载与安装图文教程
wptr33 2025-05-15 21:28 3 浏览
一、下载(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版本号
相关推荐
- MySQL合集-innobackupex在线备份及恢复(全量和增量)
-
Xtrabackup是由percona开发的一个开源软件,它是innodb热备工具ibbackup(收费的商业软件)的一个开源替代品。Xtrabackup由个部分组成:xtrabackup和innob...
- MySQL合集-单机容器化
-
MySQL单机容器化mkdir-p/opt/mysql/{data,etc}cpmy.cnf/opt/mysql/etc#dockersearchmysqldockerpullm...
- MySQL合集-小版本升级指南
-
下载最新的mysqlwgethttps://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.38-linux-glibc2.12-x86_64.tar.gz...
- Mysql 数据库运维方案
-
前言...
- 如果忘记了 WAMP 中本机数据库(MySQL)的密码,该怎么办?
-
如果忘记了WAMP中本机数据库(MySQL)的密码,可以通过以下步骤来重置:停止MySQL服务:打开WAMP,点击“停止所有服务”,或者右键点击WAMP图标,在菜单中选择“MySQL...
- Linux服务器日常巡检脚本分享
-
Linux系统日常巡检脚本,巡检内容包含了,磁盘,...
- 在 SpringBoot 中设计一个订单号生成系统,原理,架构与实战
-
在SpringBoot中设计一个订单号生成系统,原理,架构与实战首先,我得考虑订单号的基本要求。通常订单号需要唯一性,不能重复,否则会出大问题。然后可能还要有一定的可读性,比如包含日期、时间或者业...
- K8S官方java客户端之七:patch操作
-
欢迎访问我的GitHubhttps://github.com/zq2599/blog_demos内容:所有原创文章分类汇总及配套源码,涉及Java、Docker、Kubernetes、DevOPS等;...
- 浅谈Kubernetes CRD和Operator的原理和使用方法
-
总结CRD的全称是CustomResourceDefinition,是Kubernetes为提高可扩展性,让开发者去自定义资源(如Deployment,StatefulSet等)的一种方法....
- kubernetes实用操作:kubectl命令行工具使用全面总结
-
kubectl作为客户端CLI工具,可以让用户通过命令行对Kubernetes集群进行操作。本节对kubectl的子命令和用法进行详细说明。kubectl用法概述kubectl[command][...
- ceph rbd块存储挂载及文件存储建立
-
cephrbd块存储挂载及文件存储建立一、rbd块存储挂载1创建一个OSDpool...
- odps sql中常用的时间处理方法
-
1、获取当前时间selectgetdate();2、获取昨天(字符串格式)selectto_char(dateadd(getdate(),-1,'dd'),'yyyymmd...
- 每天一个 Python 库:datetime 模块全攻略,时间操作太丝滑!
-
在日常开发中,时间处理是绕不开的一块,比如:...
- 时序异常检测工具:ADTK
-
1adtk简介智能运维AIOps的数据基本上都是...
- 又一批长事务,P0故障谁来背锅?
-
最近几周,发生过多起因为事务问题引起的服务报错。现象为...
- 一周热门
-
-
C# 13 和 .NET 9 全知道 :13 使用 ASP.NET Core 构建网站 (1)
-
因果推断Matching方式实现代码 因果推断模型
-
git pull命令使用实例 git pull--rebase
-
面试官:git pull是哪两个指令的组合?
-
git fetch 和git pull 的异同 git中fetch和pull的区别
-
git 执行pull错误如何撤销 git pull fail
-
git pull 和git fetch 命令分别有什么作用?二者有什么区别?
-
git pull 之后本地代码被覆盖 解决方案
-
还可以这样玩?Git基本原理及各种骚操作,涨知识了
-
git命令之pull git.pull
-
- 最近发表
- 标签列表
-
- git pull (33)
- git fetch (35)
- mysql insert (35)
- mysql distinct (37)
- concat_ws (36)
- java continue (36)
- jenkins官网 (37)
- mysql 子查询 (37)
- python元组 (33)
- mybatis 分页 (35)
- vba split (37)
- redis watch (34)
- python list sort (37)
- nvarchar2 (34)
- mysql not null (36)
- hmset (35)
- python telnet (35)
- python readlines() 方法 (36)
- munmap (35)
- docker network create (35)
- redis 集合 (37)
- python sftp (37)
- setpriority (34)
- c语言 switch (34)
- git commit (34)