我正在使用 Google Developers Console 为 Chrome 扩展程序设置项目。我安装了 Google Cloud SDK 没有问题,但是当我尝试gcloud init my-extension-111
在我的扩展程序的文件夹中运行时,我收到以下错误消息:
Initialized gcloud directory in [C:\_Projects\my-extension-111\.gcloud].
Cloning [https://source.developers.google.com/p/my-extension-111/r/default] into [default].
ERROR: Unable to initialize project [my-extension-111], cleaning up [C:\_Projects\my-extension-111].
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.
这对我来说没有任何意义,因为我已经在我的计算机上安装了 git 多年,甚至git init
从我的扩展文件夹中的 git bash 运行。有人可以帮我解决这个错误,以便我可以将我的源上传到 GCloud 吗?提前致谢。