【发布时间】:2015-12-06 14:33:34
【问题描述】:
使用 Xcode 7,我在将代码提交到 git 时遇到问题。
I get this error:
*** 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 'stevex@stevebookpro.(none)')
我已经尝试了建议的 git 命令;当我在存储库中运行 git config user.email 时,我看到了一个正确的电子邮件地址。我看不出它从哪里拉出不正确的。
【问题讨论】:
-
即使创建一个新项目也会出现这种行为,并且“git config --global user.email”会显示一个有效的电子邮件地址。