我们先去官网下载地址,去下载。

https://git-scm.com/downloads

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

1.

Git 最新版本2.20.1 安装及配置 Safe 第1张

2.

Git 最新版本2.20.1 安装及配置 Safe 第2张

3.

双击 Git-2.20.1-64-bit.exe 安装

Git 最新版本2.20.1 安装及配置 Safe 第3张

4.

Git 最新版本2.20.1 安装及配置 Safe 第4张

5.

Git 最新版本2.20.1 安装及配置 Safe 第5张

6.

Git 最新版本2.20.1 安装及配置 Safe 第6张

7.

Git 最新版本2.20.1 安装及配置 Safe 第7张

8.

Git 最新版本2.20.1 安装及配置 Safe 第8张

9.

设置环境变量(选择使用命令行环境)

Use Git from Git Bash only-->>git自带的命令行工具

Git from the command line and also from 3rd-party software-->>使用Windows系统的cmd命令行工具

Use Git and optional Unix tools from the Command Prompt-->>上面二者同时配置,但是注意这样会将windows中的find.exe和sort.exe工具覆盖,如果不懂这些尽量不要选择

Git 最新版本2.20.1 安装及配置 Safe 第9张

10.

choosing https transport backend:选择https传输后端

use the openssl library:使用OpenSSL库

use the native windows secure channel library:使用本机的安全库

Git 最新版本2.20.1 安装及配置 Safe 第10张

11.

配置结束转换的行

Checkout Windows-style,commit Unix-style line endings:(Windows系统安装选择)检查换行格式将windows格式的换行转换为unix格式的换行在进行提交

Checkout as-is,commit Unix-style line endings:(Unix系统安装选择)检查换行格式将原来不管什么格式的换行一律转换为unix格式的换行在进行提交

Checkout as-is,commit as-is:(非跨平台项目安装选择)不进行格式转换,检查出什么格式就提交什么格式

Git 最新版本2.20.1 安装及配置 Safe 第11张

12.

 配置终端模拟器以使用Git Bash

Git 最新版本2.20.1 安装及配置 Safe 第12张

13.

Git 最新版本2.20.1 安装及配置 Safe 第13张

14.

launch finish to exit setup: 启动完成以退出安装程序

view relese notes:查看说明

Git 最新版本2.20.1 安装及配置 Safe 第14张

15.

配置环境变量

我安装的是F盘,所以我把git下的cmd在当前全部路径复制,

Git 最新版本2.20.1 安装及配置 Safe 第15张

16.

Git 最新版本2.20.1 安装及配置 Safe 第16张

17.

Git 最新版本2.20.1 安装及配置 Safe 第17张

18.

Git 最新版本2.20.1 安装及配置 Safe 第18张

19.

启动GIT命令是否,安装成功

Git 最新版本2.20.1 安装及配置 Safe 第19张

20.

Git 最新版本2.20.1 安装及配置 Safe 第20张

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄