My global ~/.gitconfig is seperated into several files. I include them like this:
[include]
path = ./.gitconfig-userdetails
This works for git quite well as git config --get user.email
and git config --get user.name
return the correct values. Sublime Merge does not recognize these values though (always says ‘click here to set user details’).
In fact, even if i add the info via the Sublime Merge ‘click here to set user details’-window, there is another, directly added [user]
entry at the end of my global ~/.gitconfig file - which is ignored as well. I am not able to commit anything like that. It works when i remove the include and add the [user]
entry directly in the global ~/.gitconfig.
I am experiencing this behaviour in Win10.