簡體   English   中英

Google Cloud SDK gcloud init

[英]Google Cloud SDK gcloud init

我安裝了Google Cloud SDK和Git,但是當我嘗試在gcloud init overseas-966運行gcloud init overseas-966 (我的項目名稱)時,收到以下錯誤消息:

G:\>gcloud init overseas-966
WARNING: `gcloud init` will be changing soon. To clone git repo consider using `
gcloud alpha source clone` command.
Initialized gcloud directory in [G:\overseas-966\.gcloud].
Cloning [https://source.developers.google.com/p/overseas-966/r/default] into [de
fault].
ERROR: Unable to initialize project [overseas-966], cleaning up [G:\overseas-966
].
ERROR: (gcloud.init) Cannot find git. Please install git and try again.

You can find git installers at [http://git-scm.com/downloads], or use
your favorite package manager to install it on your computer.

G:\>git --version``
git version 1.9.5.msysgit.1

Git是從[ http://git-scm.com/downloads]下載的,Git路徑在PATH環境變量中。 請給我一些建議。

當gcloud嘗試執行'git'時出現此錯誤,並且無論出於何種原因它都會失敗(不一定當git不在路徑上時)。

假設您只關心克隆repo,您​​可以通過運行獲得相同的結果

git clone https://source.developers.google.com/p/overseas-966/r/default --config credential.helper=gcloud.cmd

gcloud必須在你的道路上才能完成上述工作。

如果問題仍然存在,請在https://code.google.com/p/google-cloud-sdk/issues/list下提交一個錯誤,並輸出gcloud info (刪除個人信息)。

我也遇到過這個問題,但我已經完成了項目設置。

摘自Google的發行說明

0.9.89(2015/12/02)

gcloud核心

  • 改變了gcloud init git存儲庫克隆選項的行為。 它現在將輸入到存儲庫的目標目錄的路徑,而不是存儲庫目標的父目錄。

我認為這是它所指的變化。 您可以通過運行gcloud components update來更新Cloud SDK組件。 也許更新你的組件會解決問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM