Git安裝:
- Linux系統自帶:終端中輸入
git
即可 - Windows系統安裝:
- git下載: https://git-scm.com/download/win
- 將git添加至環境變量
git --version
查看git版本
Git配置:
git config --global --list
用於查看git配置信息,主要包括郵箱email和姓名name
PS C:\Users\qiyh> git config --global --list
core.editor="D:\Microsoft VS Code\bin\code" --wait
[email protected]
user.name=qiyh
git config --global user.email "[email protected]"
設置郵箱git config --global user.name "Your Name"
設置姓名- 去掉
--global
表示僅對該repo生效
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
參考鏈接:https://blog.csdn.net/qwaszx523/article/details/79072276