$ git push cloud fatal: remote error: Forbidden
$ git push cloud fatal: remote error: Forbidden
情况:
我正在学习本教程:
https://cloud.google.com/nodejs/tutorials/bookshelf-on-compute-engine
当我到达这里时:
代码:
git commit -am "Updating configuration"
git config credential.helper gcloud.sh
git remote add cloud https://source.developers.google.com/p/[YOUR_PROJECT_ID]/
git push cloud
错误:
我收到以下错误:
fatal: remote error: Forbidden
问题:
我该如何解决这个问题?
P.S.: 我做了:gcloud auth application-default login
gcloud auth application-default login
命令获取用于 Application Default Credentials 的用户凭据。这些凭证由您自己的应用程序中的 Google 个客户端库严格使用。它们不用于 gcloud CLI 或 git-credential-gcloud.sh
脚本发出的任何 API 调用。
改用 gcloud auth login
命令。
添加遥控器时,请确保为您的存储库使用完整的 URL,如您在 https://console.cloud.google.com/code/develop/repo?project=[PROJECT]
的存储库集中所列
例如:
git commit -am "Updating configuration"
git config credential.helper gcloud.sh
git remote add cloud https://source.developers.google.com/p/[PROJECT]/r/[REPO]
git push cloud
情况:
我正在学习本教程:
https://cloud.google.com/nodejs/tutorials/bookshelf-on-compute-engine
当我到达这里时:
代码:
git commit -am "Updating configuration"
git config credential.helper gcloud.sh
git remote add cloud https://source.developers.google.com/p/[YOUR_PROJECT_ID]/
git push cloud
错误:
我收到以下错误:
fatal: remote error: Forbidden
问题:
我该如何解决这个问题?
P.S.: 我做了:gcloud auth application-default login
gcloud auth application-default login
命令获取用于 Application Default Credentials 的用户凭据。这些凭证由您自己的应用程序中的 Google 个客户端库严格使用。它们不用于 gcloud CLI 或 git-credential-gcloud.sh
脚本发出的任何 API 调用。
改用 gcloud auth login
命令。
添加遥控器时,请确保为您的存储库使用完整的 URL,如您在 https://console.cloud.google.com/code/develop/repo?project=[PROJECT]
的存储库集中所列例如:
git commit -am "Updating configuration"
git config credential.helper gcloud.sh
git remote add cloud https://source.developers.google.com/p/[PROJECT]/r/[REPO]
git push cloud