如何使用 sdk 正确验证 Google Cloud Source Repositories
how to authenticate correctly to Google Cloud Source Repositoriess with sdk
我已按照 Google Cloud Source Repositories in source.cloud.google.com
提供的步骤进行操作
- gcloud init && git config --global credential.https://source.developers.google.com.helper gcloud.cmd
- git远程添加googlehttps://source.developers.google.com/p/[Project-id]/path
- git 推 --all google
但是我得到了错误:
无效的身份验证凭据
按照这些步骤完成任务却无法完成任务,我并不感到沮丧
我确实按照 adding repositories 中的这些步骤操作,而且效果很好。
在某些情况下,您可能无法访问 Cloud SDK。例如,您可能在无法访问这些工具的构建服务器上工作。在这些情况下,您可以手动生成静态凭据。
导航到 repository page。
找到存储库并单击“克隆”。
将首选身份验证方法更改为手动生成的凭据。
按照说明使用生成的凭据。
执行以下步骤 - 它对我有效
您将获得新生成的身份验证凭据。您需要 copy
并且 paste
在您的 cmd
中。届时它将完美运行。
我已按照 Google Cloud Source Repositories in source.cloud.google.com
提供的步骤进行操作- gcloud init && git config --global credential.https://source.developers.google.com.helper gcloud.cmd
- git远程添加googlehttps://source.developers.google.com/p/[Project-id]/path
- git 推 --all google
但是我得到了错误: 无效的身份验证凭据
按照这些步骤完成任务却无法完成任务,我并不感到沮丧
我确实按照 adding repositories 中的这些步骤操作,而且效果很好。
在某些情况下,您可能无法访问 Cloud SDK。例如,您可能在无法访问这些工具的构建服务器上工作。在这些情况下,您可以手动生成静态凭据。
导航到 repository page。
找到存储库并单击“克隆”。
将首选身份验证方法更改为手动生成的凭据。
按照说明使用生成的凭据。
执行以下步骤 - 它对我有效
您将获得新生成的身份验证凭据。您需要 copy
并且 paste
在您的 cmd
中。届时它将完美运行。