0

flint という gce コンソールでプロジェクトを作成しました。

次に、セクション Initializing projects and setup push-to-deployのhttps://cloud.google.com/sdk/gcloud/に従って、ローカルで git リポジトリを初期化しようとしまし た。

これにより、次のエラーが発生しました

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

4

3 に答える 3

5

ここでの問題は、ドキュメントが、私が選択したプロジェクト名「フリント」と、Google が関連付ける「プロジェクト ID」を区別していないことです。私のプロジェクト ID は、カリウム-怒り-300 のようなものでした。これは、プロジェクト テーブルのエントリとしてプロジェクト名とプロジェクト ID をリストするプロジェクトのテーブルで確認できます。

gcloud init にはプロジェクト ID を使用する必要があります。

gcloud init プロジェクト ID

ドキュメントによると

gcloud init プロジェクト

プロジェクト名とIDがあいまいです。

于 2015-01-01T22:17:39.317 に答える
0

gcloud auth login に関連付けられているプロジェクトと同じメール アドレスでログインしていることを確認してください。

于 2015-05-12T02:18:36.847 に答える