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 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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With