对于git的user.name 与user.email来说,有三个地方可以设置

  • etc/gitconfig (几乎不常用) git config --system
  • ~/.gitconfig(对于单个用户的,常用) git config --global
  • .git/config (针对于特定项目) git config --local
    优先级 3>2>1

如:修改本项目的:name 和email

修改用户名,xxx 处填写你的姓名,如:

git config --global user.name "xxx"

修改邮箱地址,xxx 处填写你的邮箱地址,如:

git config --global user.email "xxx"

修改全局的和用户的类似。

相关文章:

  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2021-04-30
  • 2021-06-01
猜你喜欢
  • 2022-12-23
  • 2021-06-10
  • 2021-12-07
  • 2021-07-28
  • 2021-07-18
  • 2022-12-23
  • 2022-02-08
相关资源
相似解决方案