public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: Aditya Garg <gargaditya08@live.com>
Cc: Johannes Schindelin <johannes.schindelin@gmx.de>,
	"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: Why git on windows pops up Git Credential Manager inspite of having set a credential helper in .gitconfig
Date: Tue, 1 Jul 2025 16:59:38 +0000	[thread overview]
Message-ID: <aGQT-svTIIgXdb6X@fruit.crustytoothpaste.net> (raw)
In-Reply-To: <PN3PR01MB959737CFDDC39898364CBE34B841A@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM>

[-- Attachment #1: Type: text/plain, Size: 1633 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

  parent reply	other threads:[~2025-07-01 16:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-01 15:49 Why git on windows pops up Git Credential Manager inspite of having set a credential helper in .gitconfig Aditya Garg
2025-07-01 16:41 ` Johannes Schindelin
2025-07-01 16:58   ` Aditya Garg
2025-07-01 17:03     ` Johannes Schindelin
2025-07-01 17:04       ` Aditya Garg
2025-07-01 16:59 ` brian m. carlson [this message]
2025-07-01 17:02   ` Aditya Garg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aGQT-svTIIgXdb6X@fruit.crustytoothpaste.net \
    --to=sandals@crustytoothpaste.net \
    --cc=gargaditya08@live.com \
    --cc=git@vger.kernel.org \
    --cc=johannes.schindelin@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox