一、下載地址git
2、安裝步驟
一、windows 64bit
1.1)雙擊 Git-2.20.1-64-bit.exe 安裝shell

1.2)選擇安裝目錄

1.3)選擇組件windows
Additional icons-->>其餘圖標
On the Desktop-->>選擇是否建立桌面快捷方式
Windows Explorer integration-->>Windows資源管理器集成
Git Bash Here-->>命令行模式,使用Bash瀏覽源碼
Git GUI Here-->>圖形界面,使用GUI瀏覽源碼
Associate .git* configuration files with the default text editor-->>
是否關聯git配置文件,該配置文件主要顯示文本編輯器的樣式
Associate .sh files to be run with Bash-->>
是否關聯Bash命令行執行的shell腳本文件
Use a TrueType font in all console windows-->>
在命令行中是否使用TruthType編碼,該編碼是微軟和蘋果公司制定的通用編碼

1.4)開始菜單目錄名稱後端

1.5)選擇Git使用的默認編輯器編輯器

1.6)設置環境變量(選擇使用命令行環境)工具
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工具覆蓋,若是不懂這些儘可能不要選擇

1.7)選擇HTTPS傳輸後端ui

1.8)配置結束轉換的行編碼
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:
(非跨平臺項目安裝選擇)不進行格式轉換,檢查出什麼格式就提交什麼格式

1.9)配置終端模擬器以使用Git Bashspa

1.10)額外的配置選項命令行

1.11)安裝完成

1.12)從新安裝或者覆蓋安裝

二、配置環境變量
2.1)環境變量path中添加 D:\Program Files\Git\cmd

2.2)驗證是否配置成功,配置成功以下圖
