Windows GIT安裝詳解

1.去官網下載

https://git-scm.com/download/win

也可以使用下載工具

 2.安裝

 3.安裝配置文件,自己需要的都選上,下一步

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 配置文件與默認文本編輯器相關聯
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更新

4.不創建啓動文件夾,下一步:

5.選擇默認的編輯器,我們直接用推薦的就行,下一步

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 Insiders 作爲 Git 的默認編輯器

6.勾上第二項,這樣就可以在cmd中操作,下一步

配置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 ”。只有在瞭解其含義後才使用此選項。

7.使用默認設置就行,下一步:

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 。

8.配置行結束標記,保持默認“Checkout”

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”)

9.在終端模擬器選擇頁面,默認即可,配置後Git

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之前,其窗口不能自由調整大小,並且只允許矩形文本選擇。

10.最後配置Git額外選擇默認即可,然後安裝。

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權限)。請注意,現有存儲庫不受此設置的影響。

11.此步驟在2.22.0版本纔有,我是選擇了開啓,(可忽略)

12.安裝完成

二:安裝git小烏龜,https://tortoisegit.org/download/

       一直next即可完成安裝,但是,需要注意的是必須先安裝git,在安裝git小烏龜

三:安裝語言包,同樣是https://tortoisegit.org/download/

        然後一直next即可,要先裝完小烏龜在安裝語言包。

四:在碼雲上或者github上,複製項目git地址,到本地選擇自己想要放置的地址,點擊克隆,登錄用戶,即可拉取項目

     

  

五. 點擊確定的時候,需要輸入碼雲的賬號密碼確認.  確認成功後,就開始拉取了.最後拉取完就行了.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章