簡體   English   中英

無法從gcloud克隆到git:“找不到gcloud的git憑證幫助器。”

[英]Cannot clone from gcloud to git: “Could not find gcloud's git credential helper.”

我在Google的Cloud Platform中有一個git存儲庫。 我正在嘗試將其克隆到本地git報告中,如下所示:

git config credential.helper gcloud.sh
gcloud source repos clone myrepository --project=myprojectid

這給了我這個錯誤:

ERROR: (gcloud.source.repos.clone) Could not find gcloud's git credential helper. Please make sure the Cloud SDK bi
n folder is in PATH.

我已驗證gcloud在$ PATH中:

> which gcloud
/usr/bin/gcloud

這是SUSE的新GCE實例。 在Mac上可用,但在此SUSE服務器上不可用。

有任何想法嗎?

Cloud SDK的bin文件夾需要位於$PATH ,而不僅僅是gcloud

/usr/bin/gcloud可能是指向完整的google-cloud-sdk安裝目錄的符號鏈接或包裝腳本。 您需要在路徑中添加google-cloud-sdk/bin ,因為這是憑據幫助程序所在的位置。

(這是由於git-credential-helper模型中的限制。

暫無
暫無

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

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