使用gcloud init时遇到困难 [英] Trouble using gcloud init

查看:392
本文介绍了使用gcloud init时遇到困难的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在gcloud上看到了一段甜美的视频,并想尝试一下,但一开始就遭到阻挠。我做了安装程序,下载了工具,运行gcloud auth login,都很好。试图启动一个项目,并得到一个错误,我不知道如何解决。

Saw a sweet video on gcloud and wanted to give it a shot but was stymied at the start. I did the setup, downloaded the tools, ran gcloud auth login, all good. Tried to init a project and got an error I'm not sure how to fix.

$ gcloud init my-awesome-project-555
Initialized gcloud directory in [/Users/freddy/my-awesome-project-555/.gcloud].
Cloning [https://source.developers.google.com/p/my-awesome-project-555/r/default] into [default].
Initialized empty Git repository in /Users/freddy/my-awesome-project-555/default/.git/
fatal: remote error: 403 Forbidden
ERROR: Unable to initialize project [my-awesome-project-555], cleaning up [/Users/freddy/my-awesome-project-555].
ERROR: (gcloud.init) Could not fetch repository.
$ 

好的措施:

For good measure:

$ which git
/usr/local/git/bin/git
$ git --version
git version 1.7.12.1
$ 

我在使用OSX 10.9.2的Macbook Air上

I'm on a macbook air with OSX 10.9.2

关于我可能做错什么想法?

Any ideas on what I may be doing wrong?

推荐答案

gcloud auth和git之间的整合只适用于版本为1.8及以上的git客户端。请尝试更新您的git客户端,然后重试。我们将在未来版本中为此添加更明确的错误消息。谢谢!

The integration between gcloud auth and git only works for git clients version 1.8 and up. Please try updating your git client and try again. We will add a more clear error message for this in a future release. Thanks!

这篇关于使用gcloud init时遇到困难的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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