2020
09-03

repo init -u || git 报错 fatal: unable to auto-detect email address

fatal: unable to auto-detect email address

今天在调试更新git时出现了如下问题:fatal: unable to auto-detect email address

刚配置好的git,今天刚要commit一些修改,就遇到了这个问题

** 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 'tim@newton.(none)')

git 报错 fatal: unable to auto-detect email address

1、如果碰到 fatal: unable to auto-detect email address 错误就先执行下面的代码,user.email 和 user.name可以随便乱写

git config --global user.email "aa@ab.com"
git config --global user.name "aa"

2、直接在git中使用如下命令:

git  config  user.name  "xxxxx"

3、找到根文件.git文件,输入如下:

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

如无特殊说明,解压密码均为:aisoa.cn

您可能感兴趣的文章

    支付宝打赏支付宝打赏微信打赏微信打赏