Xcode git自动检测电子邮件错误

使用 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时,我看到了一个正确的电子邮件地址.我没有看到它从哪里拉出不正确的.

解决方法

和大多数人一样,我希望,我有正确的user.email和user.name全局设置,之前从未遇到过Xcode的问题.

我发现通过制作这些设置本地Xcode再次开心.

那是:

cd <YourCodeRepository>
xcrun git config user.email "you@example.com"
xcrun git config user.name "Your Name"

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...