Nef*_*ous 6 git google-cloud-repository
我刚刚注册尝试使用Google Cloud存储库,但正在尝试入门列表,但在
git remote add google https://source.developers.google.com/p/*name-xxxxxx*/r/default
git push google master
fatal: remote error: Forbidden
Run Code Online (Sandbox Code Playgroud)
我无法判断他们是否认为我没有许可,我是组织项目的所有者
我在Source Tools Console中创建了一个存储库
然后,我尝试按照他们的指示创建本地存储库,但失败了:
gcloud source repos clone source --project=project-xxxxxx
Cloning into 'xxx\\source'...
ERROR: (gcloud.auth.git-helper) Invalid input line format: [path=].
fatal: remote error:
Invalid authentication credentials.
Please generate a new identifier:
https://source.developers.google.com/auth/start?scopes=https://www.googleapis.com/auth/cloud-platform
ERROR: (gcloud.source.repos.clone) Command '['git', 'clone', 'https://source.developers.google.com/p/project-xxxxxx/r/source', 'xxx\\source', '--config', 'credential.helper=!gcloud.cmd auth git-helper --account=aaa@bbb.com --ignore-unknown $@']' returned non-zero exit status 128
Run Code Online (Sandbox Code Playgroud)
小智 0
Cloud Source Repositories URL 的确切格式为https://source.developers.google.com/p/${project_id}/r/${repo_name}. 您似乎正在尝试使用项目编号而不是项目 ID。
要从项目编号中查找您的项目 ID,您可以运行:
gcloud projects list --filter PROJECT_NUMBER=${project_number}
Run Code Online (Sandbox Code Playgroud)
另请确保您使用正确的帐户进行身份验证。您可以通过运行以下命令查看 gcloud 正在使用的活动帐户:
gcloud auth list
Run Code Online (Sandbox Code Playgroud)
如果您在克隆存储库时仍然遇到问题,我会尝试确保您的 gcloud 版本是最新的(例如gcloud components update)。
| 归档时间: |
|
| 查看次数: |
4872 次 |
| 最近记录: |