当前位置: 代码迷 >> 综合 >> fatal unable to auto-detect email address (got ‘...@...(none)‘)
  详细解决方案

fatal unable to auto-detect email address (got ‘...@...(none)‘)

热度:97   发布时间:2023-12-28 14:08:01.0

fatal: unable to auto-detect email address (got ‘…@…(none)’)

一、错误:

*** Please tell me who you are.
Rungit 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 'jyc@jyc1.(none)')

二、解决

? 在git clone的工程目录下,打开.git文件夹下的config文件。

cd 工程路径/.git
sudo gedit config

? 将下面内容添加到到config末尾(注意格式),即可解决。

[user]
email=your email
name=your name
  相关解决方案