Disable Git Credential manager for Windows from Visual Studio 2019

Viewed 1208

I am using following

  • Visual Studio 2019 Professional.
  • Git for Windows 2.29.2

Suddenly I am getting following popup

enter image description here

I have tried to disable using command git config and also manually removed credential.manager from config and this popup still comes.

Due to this if I provided Azure DevOps credential, it get fails with authentication failed.

I have recently update the git and also tried to reinstall git extension for visual studio but it is not helping.

In popup if I provide username as PersonalAccessToken and password as PAT I have generated then everything seems to be working.

1 Answers

In popup if I provide username as PersonalAccessToken and password as PAT I have generated then everything seems to be working.

That would be the recommended course of action: it should cache again your credentials and not ask for them again after that.

Recent Git for Windows releases have switches to Git Credential Manager Core "GCM Core"

Make sure that, in command-line, git config --global credential.helper is set to manager-core.


Note that before Git 2.30 (Q1 2021), multiple "credential-store" backends can race to lock the same file, causing everybody else but one to fail---reattempt locking with some timeout to reduce the rate of the failure.

See commit df7f915 (25 Nov 2020) by Simão Afonso (simaoafonso-pwt).
(Merged by Junio C Hamano -- gitster -- in commit 3d8f81f, 30 Nov 2020)

crendential-store: use timeout when locking file

Signed-off-by: Simão Afonso

When holding the lock for rewriting the credential file, use a timeout to avoid race conditions when the credentials file needs to be updated in parallel.

An example would be doing fetch --all on a repository with several remotes that need credentials, using parallel fetching.

The timeout can be configured using "credentialStore.lockTimeoutMS", defaulting to 1 second.

git config now includes in its man page:

credentialStore.lockTimeoutMS

The length of time, in milliseconds, for git-credential-store to retry when trying to lock the credentials file.

  • Value 0 means not to retry at all;
  • -1 means to try indefinitely.
    Default is 1000 (i.e., retry for 1s).
Related