每次重新新建工程时候git的配置信息都不能直接在命令行里修改 用户名 和邮箱,不会生效,且报错

*** Please tell me who you are.

Run

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

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'Administrator@PC-20150120BUBR.(none)')

参考网上解决办法就是

找到工程目录的.git文件夹,打开之后找到config文件,在最后边加上一句话
[user]
email=your email
name=your name

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
  • 2021-05-06
  • 2022-12-23
  • 2021-05-17
  • 2021-04-30
  • 2021-06-14
猜你喜欢
  • 2021-05-24
  • 2022-12-23
  • 2021-10-21
  • 2021-06-03
  • 2021-12-28
  • 2021-04-11
相关资源
相似解决方案