Read an article
Something like
[includeIf "gitdir:/Users"]
path = ~/.gitconfig-macos
[includeIf "gitdir:C:"]
path = ~/.gitconfig-windows
[includeIf "gitdir:/home"]
path = ~/.gitconfig-linux
for macos
[credential]
helper = osxkeychain
for windows
[credential]
helper = manager
Read an article
Something like
for macos
[credential] helper = osxkeychainfor windows
[credential] helper = manager