github commit时出现 Please tell me who you are.....

第一种设置全局的,

直接在命令行输入

git config --global user.email "you@example.com"

git config --global user.name "Your Name"

 

第二种设置单独的,在每个仓库里的.git下有个config文件,在里面添上

[user]
    name = XXX(自己的名称)
    email = XXXX(邮箱)

当全局的和单独的都存在时,默认使用单独的

相关文章:

  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2022-02-13
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2021-04-11
  • 2022-12-23
  • 2022-03-01
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
相关资源
相似解决方案