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

牧云@^-^@ 提交于 2019-12-03 02:29:19

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"

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..

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