From: Sebastian Richter <Sebastian.Richter@HTW-Berlin.de>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Imi Admin <imiadmin@htw-berlin.de>, git@vger.kernel.org
Subject: Re: Problem with credential.helper=store in git 2.32.0.windows.2
Date: Mon, 10 Jan 2022 08:58:45 +0100 [thread overview]
Message-ID: <1c331bdd51b424022bfd598c71d7d666@HTW-Berlin.de> (raw)
In-Reply-To: <nycvar.QRO.7.76.6.2201092246520.339@tvgsbejvaqbjf.bet>
Hi Johannes,
thanks for clarifying this. I'm using 'git config --system --unset
credential.helper' before setting the file store in the local
configuration now and it works.
Best Sebastian
Am 09.01.2022 22:53, schrieb Johannes Schindelin:
> Hi Sebastian,
>
> On Thu, 6 Jan 2022, Imi Admin wrote:
>
>> 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
--
Hochschule für Technik und Wirtschaft
Wilhelminenhofstr. 75A
12459 Berlin
Gebäude C Raum 538
tel 030 5019 2945
fax 030 5019 48 2945
mail richter@htw-berlin.de
next prev parent reply other threads:[~2022-01-10 8:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-06 12:32 Problem with credential.helper=store in git 2.32.0.windows.2 Imi Admin
2022-01-09 21:53 ` Johannes Schindelin
2022-01-10 7:58 ` Sebastian Richter [this message]
2022-01-10 12:52 ` Johannes Schindelin
2022-01-10 14:03 ` Sebastian Richter
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1c331bdd51b424022bfd598c71d7d666@HTW-Berlin.de \
--to=sebastian.richter@htw-berlin.de \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=imiadmin@htw-berlin.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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).