Re: A different git problem
Re: A different git problem
- Subject: Re: A different git problem
- From: John Brownie <email@hidden>
- Date: Sat, 03 Oct 2015 13:27:02 +1000
On Sat Oct 03 2015 12:38:25 GMT+1000 (PGT) Roland King wrote:
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
it won’t be quick, but it will hunt out every git config file and you can go look at them.
If none of those things is the case, then it seems Xcode has SCM issues again.
Same git with xcrun as without, git --version reports
git version 2.3.8 (Apple Git-58)
Both git config user.email and user.name report correct values.
I searched for all files with config in the name and git in the path,
and none has a [user] except ~/.gitconfig and the gitconfig inside
SourceTree, which has commented-out lines for the two parameters.
Sounds like I've hit your last case, so I abandon hope until an Xcode
update, and get used to SourceTree.
John
--
John Brownie, email@hidden or email@hidden
Summer Institute of Linguistics, Ukarumpa, Eastern Highlands Province,
Papua New Guinea
Mussau-Emira language, Mussau Island, New Ireland Province, Papua New Guinea
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden