Git學習記錄(一):安裝與配置

Git安裝:

  • Linux系統自帶:終端中輸入git即可
  • Windows系統安裝:
  • 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

VSCode Git插件

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