Reputation: 5817
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.
Upvotes: 7
Views: 1908
Reputation: 1721
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"
Upvotes: 8
Reputation: 3
You're not the only one. There is even a special topci on apple forums. I also tried by renaming global settings - nothing helped. Try using:
xcrun git config --global user.email "[email protected]"
xcrun git config --global user.name "Your Name"
but sadly for me it didn't work. I think they will fix this after official release. Until then, You must use Terminal, Source Tree or other tools.
Upvotes: 0