From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Aditya Garg <gargaditya08@live.com>
Cc: "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 18:41:00 +0200 (CEST) [thread overview]
Message-ID: <610f64a5-015e-b2d8-03ea-78bb623f6af0@gmx.de> (raw)
In-Reply-To: <PN3PR01MB959737CFDDC39898364CBE34B841A@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM>
Hi Aditya,
On Tue, 1 Jul 2025, Aditya Garg wrote:
> 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 removed it using git config --edit --system, but after every update, it pops out again.
As per
https://git-scm.com/docs/gitcredentials#Documentation/gitcredentials.txt-helper:
If there are multiple instances of the `credential.helper` configuration
variable, each helper will be tried in turn, and may provide a username,
password, or nothing. Once Git has acquired both a username and a
non-expired password, no more helpers will be tried.
> I wonder if some proper fix is there for this.
Yes, from the same page:
If `credential.helper` is configured to the empty string, this resets the
helper list to empty (so you may override a helper set by a lower-priority
config file by configuring the empty-string helper, followed by whatever
set of helpers you would like).
So the trick is to call `git config set --global --add credential.helper ''`
followed by `git config set --global --add credential.helper $HELPER`.
Ciao,
Johannes
next prev parent reply other threads:[~2025-07-01 16:41 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 [this message]
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
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=610f64a5-015e-b2d8-03ea-78bb623f6af0@gmx.de \
--to=johannes.schindelin@gmx.de \
--cc=gargaditya08@live.com \
--cc=git@vger.kernel.org \
/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