1.下載 git:https://git-scm.com/
1
2
安裝教程:
閱讀GNU通用公共許可證
1
選擇安裝地址
2
選擇組件(應(yīng)該安裝哪些部件)選擇要安裝的組件袱贮,清除不想安裝的組件改执,當(dāng)您準(zhǔn)備繼續(xù)時(shí),單擊next
組件說(shuō)明:
additional icons -- on the desktop
圖標(biāo)組件:勾選后安裝會(huì)在桌面生成Git的快捷方式
windows explorer integration -- Git Bash Here
瀏覽源碼的方式-Git基本:Git的基本必選
windows explorer integration -- Git GUI Here
瀏覽源碼的方式-Git用戶(hù)圖形界面:更好的UI體驗(yàn) (高級(jí)的瀏覽方法使用git-cheetah plugin插件)
Git LFS(large file support)
大文件支持:有上限(大概1G)需要增加可以付費(fèi)
Associate .git* configuration files with the default text editor
將.git*配置文件與默認(rèn)文本編輯器關(guān)聯(lián)
Associate .sh files to be run wirh Bash
關(guān)聯(lián)要在Bash中運(yùn)行的.sh文件( 關(guān)聯(lián)shall腳本文件)
Use a TrueType font in all console windows
在所有控制臺(tái)窗口中使用TrueType字體
Check daily for Git for Windows updates
每天檢查Git的Windows更新
3
Select Strat Menu Folder -- 創(chuàng)建開(kāi)始菜單目錄
Don't create a Start Menu folder -- 不創(chuàng)建啟動(dòng)文件夾(不勾選)
4
choosing the default editor used by Git -- 選擇Git使用的默認(rèn)編輯器
which editor would you like Git to use -- 您希望Git使用哪個(gè)編輯器
1.Use the Nano editor by default
默認(rèn)使用 Nano 編輯器
2.Use Vim (The ubiquitous text editor) as Git's default editor
使用 Vim(無(wú)處不在的文本編輯器) 作為 Git 的默認(rèn)編輯器
3.Use Notepad++ as Git's default editor
使用 Notepad++ 作為 Git 的默認(rèn)編輯器
4.Use Visual Studio Code as Git's default editor
使用 Visual Studio Code 作為 Git 的默認(rèn)編輯器
5.Use Visual Studio Code Insiders as Git's default editor
使用 Visual Studio Code Insiders 作為 Git 的默認(rèn)編輯器
6.Use Sublime Text as Git's default editor
使用Sublime Text作為Git的默認(rèn)編輯器
7.Use as Git's default editor
使用Atom 作為Git的默認(rèn)編輯器
8.Select other editor as Git's default editor
選擇其他編輯器作為Git的默認(rèn)編輯器
5
Adjusting your PATH environment -- 調(diào)整路徑環(huán)境
How would you like to use Git from the command line -- 您希望如何從命令行使用Git
1.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(這是最安全的選擇艳馒,因?yàn)槟穆窂礁静粫?huì)被修改匣吊。您將只能使用Git Bash中的Git命令行工具)
2.Git from the command line and also from 3rd-party software -- 來(lái)自命令行以及第三方軟件的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(這個(gè)選項(xiàng)被認(rèn)為是安全的法梯,因?yàn)樗幌蚵窂教砑恿艘恍┳钚〉腉it包裝器高镐,以避免使用可選的Unix工具破壞環(huán)境脉课。您將能夠從Git Bash目养、命令提示符和Windows中使用Git)
3.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工具都將添加到您的路徑中)
6
Choosing HTTPS transport backend -- 選擇HTTPS傳輸后端
1.Use the OpenSSL library -- 使用OpenSSL庫(kù)
Server certificates will be validated using the ca-bundle.crt file(服務(wù)器證書(shū)將使用ca-bundle.crt文件進(jìn)行驗(yàn)證)
2.Use the native Windows Secure Channel library -- 使用本機(jī)Windows安全通道庫(kù)
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(服務(wù)器證書(shū)將使用Windows證書(shū)存儲(chǔ)庫(kù)進(jìn)行驗(yàn)證俩由。此選項(xiàng)還允許您使用公司分發(fā)的內(nèi)Root CA證書(shū),例如通過(guò)Active Directory域服務(wù))
7
配置行結(jié)束標(biāo)記混稽,保持默認(rèn)“Checkout”
1.第一個(gè)選項(xiàng):如果是跨平臺(tái)項(xiàng)目采驻,在Windows系統(tǒng)安裝审胚,選擇
2.第二個(gè)選項(xiàng):如果是跨平臺(tái)項(xiàng)目,在Unix系統(tǒng)安裝礼旅,選擇膳叨;
3.第三個(gè)選項(xiàng):非跨平臺(tái)項(xiàng)目,選擇痘系;
8
在終端模擬器選擇頁(yè)面菲嘴,默認(rèn)即可,配置后Git
9
最后配置Git額外選擇默認(rèn)即可
10
11
12