Re: Why git on windows pops up Git Credential Manager inspite of having set a credential helper in .gitconfig

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2025-07-01 at 15:49:10, Aditya Garg wrote:
> Hi

Hi,

> I am having this issue with Git for Windows that in case I configure a credential helper by following the git
> credentials documentation (https://git-scm.com/docs/gitcredentials), the Git Credential Manager still pops up.
> I simply close the pop up window, and then it seems to be getting the password from my credential manager.

I think this is because Git allows multiple credential helpers.  It's
likely that, as you mentioned below, the Git Credential Manager is
actually in the system file and the one you've specified is just
interpreted as an additional helper.

> I removed it using git config --edit --system, but after every update, it pops out again.

Is it the case that it gets re-added to this file on upgrade?  That
would explain why it keeps showing up.

> I wonder if some proper fix is there for this.

Ideally, you'd configure Git for Windows not to add this helper.  I
think there's a configuration option when you install it.

If you can't or don't want to reinstall Git for Windows to reconfigure
it, you could try setting the `credential.helper` option to an empty
string and then configuring the helper you want.  For instance, it might
look like this (not valid for Windows, just an example):

    [credential]
        helper =
        helper = libsecret

The empty string resets the list to remove any existing helpers and then
you can append whatever values you want (in my case, libsecret, but
again, that almost certainly does not work on Windows).
-- 
brian m. carlson (they/them)
Toronto, Ontario, CA

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux