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

这一生的挚爱 提交于 2019-12-03 12:02:57

问题


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:

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


回答1:


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"



回答2:


In my case, I opened and modified 'C:\Program Files\Git\mingw64\etc\gitconfig':

[credential]
    helper = gcloud.cmd
    old = manager

so that I had some notion of retention with my git config modifications..



来源:https://stackoverflow.com/questions/36339248/on-windows-git-pull-and-clone-for-google-cloud-repository-pops-credential-manage

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!