git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [credential.helper] unexpectedly save credential to multiple credential files
@ 2016-11-11  8:10 Qi Nark
  2016-11-11  8:36 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Qi Nark @ 2016-11-11  8:10 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-11  9:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-11  8:10 [credential.helper] unexpectedly save credential to multiple credential files Qi Nark
2016-11-11  8:36 ` Jeff King
2016-11-11  9:12   ` Qi Nark

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 NNTP newsgroup(s).