git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Problem with credential.helper=store in git 2.32.0.windows.2

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 9, 2022, 21:53 UTC
Message-ID
<nycvar.QRO.7.76.6.2201092246520.339@tvgsbejvaqbjf.bet>
In-Reply-To
<8838ac786ed46b841e4172824b80564b@htw-berlin.de>
Hi Sebastian,
On Thu, 6 Jan 2022, Imi Admin wrote:
Show 25 quoted lines
> Here's my local git configuration:
>
> PS C:\scripts> git config -l --show-origin
> [...]
> file:C:/Program Files/Git/etc/gitconfig	credential.helper=manager-core
> file:C:/Program Files/Git/etc/gitconfig	credential.https://dev.azure.com.usehttppath=true
> file:C:/Program Files/Git/etc/gitconfig	init.defaultbranch=master
> file:.git/config	core.repositoryformatversion=0
> file:.git/config	core.filemode=false
> file:.git/config	core.bare=false
> file:.git/config	core.logallrefupdates=true
> file:.git/config	core.symlinks=false
> file:.git/config	core.ignorecase=true
> file:.git/config	remote.origin.url=https://mygitlab.de/mygroup/myrepo.git
> file:.git/config	remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
> file:.git/config	branch.master.remote=origin
> file:.git/config	branch.master.merge=refs/heads/master
> file:.git/config	user.name=myname
> file:.git/config	user.email=my@email
> file:.git/config	credential.helper=store --file C:/scripts/.git/.git-credentials
>
> [...]
>
> Anyway as far as i understood git should not exec git-credential-manager-core
> get at all with my local git configuration?

You need one additional thing to make that happen. As per https://git-scm.com/docs/git-config#Documentation/git-config.txt-credentialhelper:

	Note that multiple helpers may be defined. See gitcredentials[7]
	for details and examples.

And in https://git-scm.com/docs/gitcredentials#_configuration_options, we read:

	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 password, no more helpers will be tried.
	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 you need to insert a line "helper =` (with an empty value) in your .git/config's `[credential]` section:

	[credential]
		# reset 'credential.helper' list
		helper =
		helper = "store --file C:/scripts/.git/.git-credentials"

Ciao, Johannes

Previous: Imi AdminNext: Sebastian Richter
Message 2 of 5 in “Problem with credential.helper=store in git 2.32.0.windows.2”
  1. Imi AdminJan 6, 2022
  2. Johannes SchindelinJan 9, 2022
  3. Sebastian RichterJan 10, 2022
  4. Johannes SchindelinJan 10, 2022
  5. Sebastian RichterJan 10, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.