Xcode, git and please tell me who you are

What is this nonsense that started with Xcode 7b5 (stil happens in GM) and how to get rid of it?


*** 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 'aleck@AV-MBP.(none)')

It's complete lottery when it would work and when it wouldn't. Yes, I do have these params globally set.

Accepted Reply

I have the same error and it seems to be a bug in Xcode 7. A workaround is to run the git config commands without --global to set user.email and user.name for the local repository.

Replies

I have the same error and it seems to be a bug in Xcode 7. A workaround is to run the git config commands without --global to set user.email and user.name for the local repository.

Yes, that's a workaround, thanks.


It's annoying that is suddenly appeared as requirement, out of the blue and you can't opt out of it. (It should be opt-in, in the first place).

Just for clarity (it took me a few mins to work this out), it's not "without --global" but "with --local instead of --global" i.e.


cd my/project/directory
git config --local user.email "me@me.com"
git config --local user.name "myname"

had the same trouble but only under office wi-fi network ⚠. At home and on 3g (via iPhone) everything was ok.

Anyway "--local" helped. Thanks

A valid provisioning profile for this executable was not found. dis message