我在gce控制台上创建了一个名为flint的项目.
然后我尝试在https://cloud.google.com/sdk/gcloud/ 上本地初始化git repo ,在 初始化项目和设置push-to-deploy一节中.
这导致以下错误
$ gcloud init flint
Initialized gcloud directory in [~/flint/.gcloud].
Unable to fetch repository URL. Guessing the URL, but if your
project uses repo-sync then the cloned repository may be read-only.
Cloning [https://source.developers.google.com/p/flint/r/default] into [default].
Cloning into '~/flint/default'...
fatal: remote error: Repository not found.
You may need to create a repository for this project using the Source Code tab at https://console.developers.google.com
ERROR: Command '['git', 'clone', 'https://source.developers.google.com/p/flint/r/default', '~/flint/default', '--config', 'credential.helper=gcloud.sh']' returned non-zero exit status 128
ERROR: Unable to initialize project [flint], cleaning up [~/flint].
ERROR: (gcloud.init) Unable to initialize project [flint].
这里的问题是文档没有区分我选择的项目名称 - "flint" - 以及谷歌与之关联的"PROJECT ID".我的项目ID类似于钾 - 愤怒-300.您可以在项目表中看到这一点,这些项目将PROJECT NAME和PROJECT ID列为项目表中的条目.
您必须使用PROJECT ID进行gcloud init.
gcloud init PROJECT ID
文件说
gcloud init PROJECT
项目名称和ID之间不明确.
| 归档时间: |
|
| 查看次数: |
1292 次 |
| 最近记录: |