System settings:
MacOS Catalina 10.15.6
> git --version
git version 2.24.3 (Apple Git-128)
file: ~/.gitconfig
:
[user]
name = nickname
email = nickname@gmail.com
[includeIf "gitdir:~/Business"]
path = ~/.gitconfig-work
file: ~/.gitconfig-work
:
[user]
name = First Last
email = fl@work.com
Output when trying to check the configuration on terminal:
(base) MBP-Name:~ myname$ cd ~/Business/
(base) MBP-Name:Business myname$ git config --get user.name
nickname
I have tried both relative ~
and absolute /
paths either for gitdir
and path
in the config file. On each change I am restarting the bash. Also, I have read several other stackoverflow questions with no success. Some of them where suggesting adding the i
option for case insensitivity but it didn't fix the problem.
Any ideas ?