Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

On Windows git pull and clone for Google cloud repository pops credential manager dialog box

Tags:

git

gcloud-cli

Pulling from an existing clone

git pull

or cloning Google cloud repository with gcloud

gcloud source repos clone default my_repo

produces the following dialog box: enter image description here

How do I configure git so that it uses gcloud credentials automatically?

like image 966
cherba Avatar asked Mar 31 '16 16:03

cherba


People also ask

What is Git credential Manager for Windows?

Git Credential Manager simplifies authentication with your Azure Repos Git repositories. Credential managers let you use the same credentials that you use for the Azure DevOps Services web portal. Credential managers support multi-factor authentication through Microsoft account or Azure Active Directory (Azure AD).


1 Answers

If you run

C:\> git config --list --system
credential.helper=manager

and get a setting for credential.helper like above, it will have precedence over gcloud installed credential helper.

You can unset it via (possibly as administrator)

C:\> git config --system --unset credential.helper

Now

C:\> gcloud source repos clone default my_repo

should work and

C:\> cd my_repo
C:\my_repo> git config --list

should display

credential.helper="gcloud.cmd"
like image 161
cherba Avatar answered Oct 24 '22 20:10

cherba