在Windows上,git pull和clone Google云存储库弹出凭证管理器对话框 [英] On Windows git pull and clone for Google cloud repository pops credential manager dialog box

查看:538
本文介绍了在Windows上,git pull和clone Google云存储库弹出凭证管理器对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从现有的克隆中拉出

  git pull 

或使用gcloud克隆Google云存储库

  gcloud源代码回购克隆默认my_repo 

产生以下对话框:



如何配置git使其自动使用gcloud凭证?

如果您运行

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

并获取设置对于 credential.helper 类似上文,它将优先于gcloud安装的凭证助手。



您可以通过(可能以管理员身份)

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

现在

  C:\> gcloud源代码回购克隆默认my_repo 

应该有效并且

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

应显示

  credential.helper =gcloud.cmd


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?

解决方案

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"

这篇关于在Windows上,git pull和clone Google云存储库弹出凭证管理器对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆