首頁 > 俗語

Git的下載與安裝,2022年最新圖文教程

作者:由 蘭谷生香 發表于 俗語日期:2023-01-02

怎麼刪除thumbs db

一、下載(Git-2。39。0。2-64-bit。exe)

Git的下載與安裝,2022年最新圖文教程

Git-2。39。0。2-64-bit。exe

官網下載:

https://git-scm。com/downloads

安裝(Windows 10 專業版 64位作業系統)

1。以管理員身份執行Git-2。39。0。2-64-bit。exe,

Git的下載與安裝,2022年最新圖文教程

2。設定安裝路徑

Git的下載與安裝,2022年最新圖文教程

3。選擇元件

Git的下載與安裝,2022年最新圖文教程

單擊Next

元件說明:

additional icons —— on the desktop 圖示元件:勾選後安裝會在桌面生成Git的快捷方式

windows explorer integration —— Git Bash Here 瀏覽原始碼的方式-Git基本:Git的基本必選

windows explorer integration —— Git GUI Here 瀏覽原始碼的方式-Git使用者圖形介面:更好的UI體驗 (高階的瀏覽方法使用git-cheetah plugin外掛)

Git LFS(large file support) 大檔案支援:有上限(大概1G)需要增加可以付費

Associate 。git* configuration files with the default text editor 將。git*配置檔案與預設文字編輯器關聯

Associate 。sh files to be run wirh Bash 關聯要在Bash中執行的。sh檔案( 關聯shall指令碼檔案)

Use a TrueType font in all console windows 在所有控制檯視窗中使用TrueType字型

Check daily for Git for Windows updates 每天檢查Git的Windows更新

(NEW!) Add a Git Bash Profile to Windows Terminal (新)向Windows終端新增Git配置檔案

(NEW!)Scalar (Git add-on to manage large-scale repositories)(新)管理大型儲存庫的Git外掛)

4。選擇編輯器

Git的下載與安裝,2022年最新圖文教程

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 的預設編輯器

Use Visual Studio Code Insiders as Git’s default editor

使用 Visual Studio Code 內部版本作為 Git 的預設編輯器

Use Sublime Text as Git‘s default editor:使用 Sublime Text 作為 Git 的預設編輯器

5。調整新儲存庫中初始分支的名稱

Git的下載與安裝,2022年最新圖文教程

預設不改變分支名稱

6。設定執行路徑環境

Git的下載與安裝,2022年最新圖文教程

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(這是最安全的選擇,因為您的環境路徑根本不會被修改。您只能使用GitBash中的Git命令列工具)

Git from the command line and also from 3rd-party software —— 來自命令列以及第三方軟體的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(這個選項被認為是安全的,因為它只向路徑添加了一些最小的Git包裝器,以避免使用可選的Unix工具破壞環境。您將能夠從Git Bash、命令提示符和Windows中使用Git)

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工具都將新增到您的路徑中)

7。選擇SSH可執行檔案

Git的下載與安裝,2022年最新圖文教程

Which Secure Shell dient program would you like Git to use? 您希望Git使用哪個安全的Shell程式?

Use bundled OpenSSH 使用自帶的OpenSSH

Use external OpenSSH 使用第三方的OpenSSH

8。選擇HTTPS傳輸後端

Git的下載與安裝,2022年最新圖文教程

Which SsL/TLS library would you like Git to use for HTTPS connections?您希望Git用於HTTPS連線的哪個SSL/TLS庫?

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證書儲存庫進行驗證。此選項還允許您使用公司分發的內Root CA證書,例如透過Active Directory域服務)

9。配置結束行格式

Git的下載與安裝,2022年最新圖文教程

How should Git treat line endings in text files?Git應該如何處理文字檔案中的結束行?

Checkout Windows-style, commit Unix-style line endings 按Windows樣式檢查提交結束行

Checkout as-is, commit Unix-style line endings 按as-is樣式檢查,提交結束行。

10。終端模擬器選擇頁面,預設即可

Git的下載與安裝,2022年最新圖文教程

11。選擇“git pull”的預設行為

Git的下載與安裝,2022年最新圖文教程

Default (fast-forward or merge)。預設(快速轉發或合併)

12。選擇

憑證儲存模式,預設即可。

Git的下載與安裝,2022年最新圖文教程

13。

配置Git額外選擇

Git的下載與安裝,2022年最新圖文教程

14。配置實驗選項

Git的下載與安裝,2022年最新圖文教程

these features are developed actively。 Would you like to try them?這些特徵得到了積極的發展。你想試試嗎?

Enable experimental support for pseudo consoles。啟用對偽控制檯的實驗支援

Enable experimental built- in file system monitor 啟用實驗內建的檔案系統監視器。

可以不選。

15。按WIN+R,輸入cmd進入控制檯,輸入git -v 命令檢視Git版本號

Git的下載與安裝,2022年最新圖文教程