git安裝教程

Step 1 Information

信息node

 

Please read the following important information before continuinggit

繼續以前,請閱讀如下重要信息windows

 

 

Step 2 Select Destination Location

選擇安裝位置後端

Step 3 Select Components

選擇組件緩存

 

 

Additional icons 附加圖標安全

​ On the Desktop 在桌面上服務器

 

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

​ Git Bash Here編輯器

​ Git GUI Hereide

 

Git LFS (Large File Support)

大文件支持

 

Associate .git* configuration files with the default text editor

將 .git 配置文件與默認文本編輯器相關聯

 

Associate .sh files to be run with Bash

將.sh文件關聯到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

建立開始菜單目錄

 

Step 5 Choosing the default editor used by Git

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

 

Step 6 Adjusting your PATH environment

 

 

配置PATH環境

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工具混淆環境。 您將可以從 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傳輸後端

 

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

配置行結束轉換

 

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不會執行任何轉換。 提交文本文件時,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不會執行任何轉換。對於跨平臺項目,不推薦使用此選項(「core.autocrlf」設置爲「false」)

 

 

Step 9 Configuring the terminal emulator to use with Git Bash

配置終端模擬器以與 Git Bash 一塊兒使用

 

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做爲終端模擬器,該模擬器具備可調整大小的窗口,非矩形選區和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

配置額外的選項

 

Enable file system caching

啓用文件系統緩存

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.

文件系統數據將被批量讀取並緩存在內存中用於某些操做(「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權限)。請注意,現有存儲庫不受此設置的影響。

 

Step 11 Installing

 

 

Step 12 Completing the Git Setup Wizard

 

相關文章
相關標籤/搜索