I have moved site specific credential options like
[credential "https://git.example.com"]
username = ...
provider = generic
to a separate file which is included in my global git config via [includeif "hasconfig:remote.*.url:https://git.example.com/**"]. Unfortunately, GCM doesn't (seem to) properly handle the hasconfig:remote.*.url: includeif variant and thus doesn't find my credential config. It then decides to add its own:
[credential "https://git.example.com"]
provider = generic
section to the global git config.
If supporting the includeif mechanism is not possible, please provide an option to stop GCM from automatically updating git config files (I manage my config via chezmoi which detects and complains about the local change made by GCM each time I update my dotfiles).
I have moved site specific credential options like
to a separate file which is included in my global git config via
[includeif "hasconfig:remote.*.url:https://git.example.com/**"]. Unfortunately, GCM doesn't (seem to) properly handle thehasconfig:remote.*.url:includeif variant and thus doesn't find my credential config. It then decides to add its own:section to the global git config.
If supporting the
includeifmechanism is not possible, please provide an option to stop GCM from automatically updating git config files (I manage my config via chezmoi which detects and complains about the local change made by GCM each time I update my dotfiles).