> On 3 Oct 2015, at 10:38, Roland King <[email protected]> wrote: > > >> On 3 Oct 2015, at 09:40, John Brownie <[email protected]> wrote: >> >> On 2/10/2015 8:57, John Brownie wrote: >>> I checked the .gitconfig, and it has the correct information, but Xcode >>> still gives me the error message, even after restarting Xcode. Is it >>> caching the non-values? Rather annoying to do what it says and still have >>> the same problem! >> >> After restarting the computer, I still have the same issue. I guess I'll >> work with SourceTree, which does work for me. > > > Possibly Xcode only just started caring about username and email and yours > were always like this. That message looks to me like a generic .gitconfig was > set up in a directory somewhere. > > Try this - go somewhere which doesn’t have a git repository at all, like > /tmp, in a terminal window, type > > git config user.email > git config user.name > > That should show you the globally configured email and name. If they are > right then you probably have another .gitconfig in the actual project or > somewhere between it and your home directory. If you go to the directory of > the project you’re having issues with and type the same commands, do you get > the same thing? If you get the myname@mymachinename.(none) then that’s coming > from a .gitconfig somewhere between your project directory and your home > directory. Or do the brute force approach and, from your home directory run > > find . -name .gitconfig -ls >
oops that was wrong - I remembered it incorrectly - the local files are .git/config not .gitconfig, so that’s what you want to look for. I also, re-reading the docs, found there may be an /etc/gitconfig file which contains system-wide defaults. I don’t have one, but it’s another place to check (although —global should have overridden it). So it’s <project>/.git/config ~/.gitconfig /etc/gitconfig one broken with a ‘/‘, one with a ‘.’ and the other without. There will be a quiz later. _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to [email protected]
