Git安裝教程

Git Setup 2.17.0
Git 中文安裝教程
AUTHOR: 謝宗南

https://creativecommons.org/licenses/by-nc-nd/4.0/deed.zh

本人 GitHub 原文地址

https://github.com/xiezongnan/Summarize/blob/master/git/Git_Setup.md

Step 1 Information
信息

image.png

Please read the following important information before continuing

繼續(xù)之前基协,請閱讀以下重要信息

Step 2 Select Destination Location
選擇安裝位置

image.png

Step 3 Select Components
選擇組件


image.png

Additional icons 附加圖標

? On the Desktop 在桌面上

Windows Explorer integration Windows資源管理器集成鼠標右鍵菜單

? Git Bash Here

? Git GUI Here

Git LFS (Large File Support)

大文件支持

Associate .git* configuration files with the default text editor

將 .git 配置文件與默認文本編輯器相關聯(lián)

Associate .sh files to be run with Bash

將.sh文件關聯(lián)到Bash運行

Use a TrueType font in all console windows

在所有控制臺窗口中使用TrueType字體

Check daily for Git for Windows updates

每天檢查Git是否有Windows更新

Step 4 Select Strat Menu Folder
創(chuàng)建開始菜單目錄


image.png

Step 5 Choosing the default editor used by Git
選擇Git使用的默認編輯器


image.png

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 的默認編輯器

Step 6 Adjusting your PATH environment


image.png

配置PATH環(huán)境

Use Git from Git Bash only

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 form Git Bash.

這是最安全的選擇礼预,因為您的PATH根本不會被修改调鲸。您只能使用 Git Bash 的 Git 命令行工具数冬。

Use Git from the Windows Command Prompt

This option is considered safe as it only adds some minimal Git wrappers to your PATH to avoid cluttering your environment with optional Unix tools . You will be able to use Git from both Git Bash and the Windows Command Prompt.

這個選項被認為是安全的裹芝,因為它只向PATH添加一些最小的 Git包仗处,以避免使用可選的Unix工具混淆環(huán)境曲饱。 您將能夠從 Git Bash 和 Windows 命令提示符中使用 Git添寺。

Use Git and optional Unix tools from the Windows Command Prompt

從Windows命令提示符使用Git和可選的Unix工具

Both Git and the optional Unix tools will be added to you PATH

Git和可選的Unix工具都將添加到您計算機的 PATH 中

Warning:This will override Windows tools like "find and sort".Only use this option if you understand the implications.

警告:這將覆蓋Windows工具趴拧,如 “ find 和 sort ”溅漾。只有在了解其含義后才使用此選項。

Step 7 Choosing HTTPS transport backend
選擇HTTPS傳輸后端


image.png

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證書存儲驗證添履。此選項還允許您使用公司的內部根CA證書,例如脑又, 通過Active Directory Domain Services 暮胧。

Step 8 Configuring the line ending conversions
配置行結束轉換


image.png

Checkout Windows-style,commit Unix-style line endings

Git will convert LF to CRLF when checking out text files.When committing text files,CRLF will be converted to LF .For cross-pltform projects,this is the recommended setting on Windows ("core.autocrlf" is set to "true")

在檢出文本文件時,Git會將LF轉換為CRLF问麸。當提交文本文件時往衷,CRLF將轉換為LF。 對于跨平臺項目严卖,這是Windows上推薦的設置(“core.autocrlf”設置為“true”)

Checkout as-is , commit Unix-style line endings

Git will not perform any conversion when checking out text files. When committing text files, CRLF will be converted to LF. For cross-platform projects,this is the recommended setting on Unix ("core.autocrlf" is set to "input")

在檢出文本文件時席舍,Git不會執(zhí)行任何轉換。 提交文本文件時妄田,CRLF將轉換為LF俺亮。 對于跨平臺項目,這是Unix上的推薦設置 (“core.autocrlf”設置為“input”)

Checkout as-is,commit as-is

Git will not perform any conversions when checking out or committing text files.Choosing this option is not recommended for cross-platform projects ("core.autocrlf"is set to "false")

在檢出或提交文本文件時疟呐,Git不會執(zhí)行任何轉換脚曾。對于跨平臺項目,不推薦使用此選項(“core.autocrlf”設置為“false”)

Step 9 Configuring the terminal emulator to use with Git Bash
配置終端模擬器以與 Git Bash 一起使用


image.png

Use MinTTY (the default terminal of MSYS2)

Git Bash will use MinTTY as terminal emulator,which sports a resizable window,non-rectangular selections and a Unicode font. Windows console programs (such as interactive Python) must be launched via 'winpty' to work in MinTTY.

Git Bash將使用MinTTY作為終端模擬器启具,該模擬器具有可調整大小的窗口本讥,非矩形選區(qū)和Unicode字體。 Windows控制臺程序(如交互式Python)必須通過'winpty'啟動才能在MinTTY中運行鲁冯。

Use Windows' default console window

Git will use the default console window of Windows ("cmd.exe"),which works well with Win32 console programs such as interactive Python or node.js , but has a very limited default scroll-back,needs to be configured to use aUnicode font in order to display non-ASCII characters correctly,and prior to Windows 10 its windows was not freely resizable and it only allowed rectangular text selections.

Git將使用Windows的默認控制臺窗口(“cmd.exe”)拷沸,該窗口可以與Win32控制臺程序(如交互式Python或node.js)一起使用,但默認的回滾非常有限薯演,需要配置為使用unicode 字體以正確顯示非ASCII字符撞芍,并且在Windows 10之前,其窗口不能自由調整大小跨扮,并且只允許矩形文本選擇序无。

Step 10 Configuring extra options
配置額外的選項


image.png

Enable file system caching

啟用文件系統(tǒng)緩存

File system data will be read in bulk and cached in memory for certain operations ("core.fscache" is set to "true"). This provides a significant performance boost.

文件系統(tǒng)數(shù)據(jù)將被批量讀取并緩存在內存中用于某些操作(“core.fscache”設置為“true”)验毡。 這提供了顯著的性能提升。

Enable Git Credential Manager

啟用Git憑證管理器

The Git Credential Manager for Windows provides secure Git credential storage for Windows,most notably multi-factor authentication support for Visual Studio Team Services and GitHub. (requires .NET framework v4.5.1 or or later).

Windows的Git憑證管理器為Windows提供安全的Git憑證存儲帝嗡,最顯著的是對Visual Studio Team Services和GitHub的多因素身份驗證支持晶通。 (需要.NET Framework v4.5.1或更高版本)。

Enable symbolic links

啟用符號鏈接

Enable symbolic links (requires the SeCreateSymbolicLink permission).Please note that existing repositories are unaffected by this setting.

啟用符號鏈接(需要SeCreateSymbolicLink權限)哟玷。請注意狮辽,現(xiàn)有存儲庫不受此設置的影響。

Step 11 Installing


image.png

Step 12 Completing the Git Setup Wizard


image.png

本文轉載自 https://blog.csdn.net/sishen47k/article/details/80211002
作者:Petrus1021
來源:CSDN

?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
  • 序言:七十年代末巢寡,一起剝皮案震驚了整個濱河市喉脖,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌抑月,老刑警劉巖动看,帶你破解...
    沈念sama閱讀 219,366評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異爪幻,居然都是意外死亡须误,警方通過查閱死者的電腦和手機挨稿,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,521評論 3 395
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來京痢,“玉大人奶甘,你說我怎么就攤上這事〖酪” “怎么了臭家?”我有些...
    開封第一講書人閱讀 165,689評論 0 356
  • 文/不壞的土叔 我叫張陵,是天一觀的道長方淤。 經常有香客問我钉赁,道長,這世上最難降的妖魔是什么携茂? 我笑而不...
    開封第一講書人閱讀 58,925評論 1 295
  • 正文 為了忘掉前任你踩,我火速辦了婚禮,結果婚禮上讳苦,老公的妹妹穿的比我還像新娘带膜。我一直安慰自己,他們只是感情好鸳谜,可當我...
    茶點故事閱讀 67,942評論 6 392
  • 文/花漫 我一把揭開白布膝藕。 她就那樣靜靜地躺著,像睡著了一般咐扭。 火紅的嫁衣襯著肌膚如雪芭挽。 梳的紋絲不亂的頭發(fā)上滑废,一...
    開封第一講書人閱讀 51,727評論 1 305
  • 那天,我揣著相機與錄音览绿,去河邊找鬼策严。 笑死,一個胖子當著我的面吹牛饿敲,可吹牛的內容都是我干的妻导。 我是一名探鬼主播,決...
    沈念sama閱讀 40,447評論 3 420
  • 文/蒼蘭香墨 我猛地睜開眼怀各,長吁一口氣:“原來是場噩夢啊……” “哼倔韭!你這毒婦竟也來了?” 一聲冷哼從身側響起瓢对,我...
    開封第一講書人閱讀 39,349評論 0 276
  • 序言:老撾萬榮一對情侶失蹤寿酌,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后硕蛹,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體醇疼,經...
    沈念sama閱讀 45,820評論 1 317
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 37,990評論 3 337
  • 正文 我和宋清朗相戀三年法焰,在試婚紗的時候發(fā)現(xiàn)自己被綠了秧荆。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 40,127評論 1 351
  • 序言:一個原本活蹦亂跳的男人離奇死亡埃仪,死狀恐怖乙濒,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情卵蛉,我是刑警寧澤颁股,帶...
    沈念sama閱讀 35,812評論 5 346
  • 正文 年R本政府宣布,位于F島的核電站傻丝,受9級特大地震影響甘有,放射性物質發(fā)生泄漏。R本人自食惡果不足惜葡缰,卻給世界環(huán)境...
    茶點故事閱讀 41,471評論 3 331
  • 文/蒙蒙 一梧疲、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧运准,春花似錦幌氮、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,017評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至韭畸,卻和暖如春宇智,著一層夾襖步出監(jiān)牢的瞬間蔓搞,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,142評論 1 272
  • 我被黑心中介騙來泰國打工随橘, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留喂分,地道東北人。 一個月前我還...
    沈念sama閱讀 48,388評論 3 373
  • 正文 我出身青樓机蔗,卻偏偏與公主長得像蒲祈,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子萝嘁,可洞房花燭夜當晚...
    茶點故事閱讀 45,066評論 2 355

推薦閱讀更多精彩內容