一、GIt的安裝與配置
1、安裝
訪問地址【https://git-scm.com/book/】

點擊安裝》》根據(jù)自己的系統(tǒng)進行下載

下載完成后安裝即可,檢驗是否安裝成功:

出現(xiàn)版本號即為安裝成功
2、配置
打開Git Bash 進行相關配置:

? ??2.1配置 user.name 和 user.email:
????$ git config --global user.name 'user_name'
????$ git config --global user.email 'user_name'
? ??config 的三個作用域:(缺省 == local)
????????local :只對某個倉庫有效
????????global :對當前用戶的所有倉庫有效
????????system :對系統(tǒng)所有登錄的用戶都有效(不常用)
? ??2.2查看配置信息:
????????$ git config --list? :列出當前所有配置
????????$ git config <key>:查看某項具體配置:例如:git config user.name
? ??2.3設置默認文本編輯器:
????????git config --global core.editor ‘your_editorName’
? ? ????例如:git config --global core.editor ‘Code’//VScode