导致Google gcloud错误消息的原因是“错误:(gcloud)无效的选择:'get'。你是不是指'meta'?“意思? [英] What causes Google gcloud error message "ERROR: (gcloud) Invalid choice: 'get'. Did you mean 'meta'?" mean?
问题描述
当我尝试将 git push
加入Google云存储库时,我收到了上述消息。
然后它要我输入我的凭证。之后,我得到以下错误:
lockquote
有效的选择是[auth,components,compute,config,container, 有什么遗漏吗? 这看起来不正确。帮手不应该包括绝对路径。您可以通过运行 对于上面的工作 返回它所在的路径。如果没有,您可以运行以设置路径。 When I try to Valid choices are [auth, components, compute, config, container,
deployment-manager, dns, docker, feedback, help, info, init, meta,
preview, projects, source, sql, topic, version]. fatal: Authentication
failed for 'https://source.developers.google.com/p/projectname/' Is there anything am missing? As This appears to be incorrect. The helper should not include absolute path. You can reset it to correct value by running For the above to work returns path where it is located. If it does not you can run to set path
这篇关于导致Google gcloud错误消息的原因是“错误:(gcloud)无效的选择:'get'。你是不是指'meta'?“意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
deployment-经理,dns,码头,反馈,帮助,信息,初始化,元,美元b b预览,项目,来源,sql,主题,版本]。致命:身份验证
因 https://source.developers.google.com/
credential.helper = / opt / google-cloud-sdk / bin / gcloud
$ git config credential.helper gcloud.sh
$ b gcloud
必须在你的PATH环境变量中,否则git将无法找到 git-credential-gcloud.sh
。确保
$ which git-credential-gcloud.sh
$ source /opt/google-cloud-sdk/path.bash.inc
git push
to Google cloud repository, I get the above message.
It then asks me to enter my credentials. After that I get the following error:
git config --list
shows in your setup, git credential helper points to credential.helper=/opt/google-cloud-sdk/bin/gcloud
$ git config credential.helper gcloud.sh
gcloud
MUST be in your PATH environment variable, as otherwise git will not be able to find git-credential-gcloud.sh
. Make sure$ which git-credential-gcloud.sh
$ source /opt/google-cloud-sdk/path.bash.inc