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插件

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