You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each brew upgrade or brew reinstall writes credential.helper entries to ~/.gitconfig,
even when git-credential-manager is already set as the credential.helper elsewhere — for example via an [include]d file — resulting in duplicate entries.
Steps to reproduce
Set up ~/.gitconfig:
[include]path = .gitconfig.d/manager.gitconfig
Set up .gitconfig.d/manager.gitconfig with the git-credential-manager settings:
Problem
Each
brew upgradeorbrew reinstallwritescredential.helperentries to~/.gitconfig,even when
git-credential-manageris already set as thecredential.helperelsewhere — for example via an[include]d file — resulting in duplicate entries.Steps to reproduce
~/.gitconfig:.gitconfig.d/manager.gitconfigwith thegit-credential-managersettings:credential.helperis resolved:(EDIT)
brew upgrade --cask git-credential-managerorbrew reinstall --cask git-credential-manager~/.gitconfigExpected vs Actual behavior
Expected
~/.gitconfigshould remain unchanged.Actual
The following duplicate entries are written to
~/.gitconfig:Note
[credential "https://dev.azure.com"] useHttpPath = trueis correctly detected and not duplicated.Version
Related
credential.helperto git config even if it's already configured #1337