Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode git Auto-Detect Email Error

Tags:

git

xcode

With Xcode 7, I'm having a problem committing code to git.

I get this error:

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  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)')

I've tried the git commands suggested; when I run git config user.email in the repository I see a correct email address. I don't see where it's pulling the incorrect one from.

like image 909
stevex Avatar asked Sep 10 '15 10:09

stevex


1 Answers

Like most people, I expect, I had the correct global setting of user.email and user.name and never had problems with Xcode before.

I found that by making those settings local Xcode was happy again.

That is:

cd <YourCodeRepository>
xcrun git config user.email "[email protected]"
xcrun git config user.name "Your Name"
like image 194
MichaelR Avatar answered Oct 03 '22 08:10

MichaelR