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

[credential.helper] unexpectedly save credential to multiple credential files

From
QNQi Nark <narcotics726@gmail.com>
Date
Nov 11, 2016, 08:10 UTC
Message-ID
<CACNr1V_fRfqvHUN=AQC8-Dj7ZAE7KXRAt+5skL3ZrcKu7SCLgA@mail.gmail.com>
1. git config --global credential.helper store
2. cd to a local repository directory, git config credential.helper
store --file ./my_cred
3. execute some git command which need credential like git ls-remote
4. input my username & password, command done.

As the result, **BOTH** the ./my_cred and ~/.git-credentials will save the credentials I just input. But, shouldn't the local config override the global ones, and only the ./my_cred should save it?

Thx.
Next: Jeff King
Message 1 of 3 in “[credential.helper] unexpectedly save credential to multiple credential files”
  1. Qi NarkNov 11, 2016
  2. Jeff KingNov 11, 2016
  3. Qi NarkNov 11, 2016

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.