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

2020-09-03
0评论
/
1143阅读
爱搜啊

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(邮箱)

本站附件分享,如果附件失效,可以去找找看

诚通网盘附件百度网盘附件


标签: git
于2020-09-03发布