当我打电话
gcloud source repos clone my-service --project=tools-project
在Cloud Shell中,我可以my-service
从Google Source Repository成功克隆存储库。
但是,当我在MacOS上调用相同的命令时,出现以下错误:
Cloning into '/Users/XXX/my-service'...
fatal: remote error: PERMISSION_DENIED The caller does not have permission
ERROR: (gcloud.source.repos.clone) Command '[u'git', u'clone', u'https://source.developers.google.com/p/tools-project/r/my-service', u'/Users/XXX/my-service', u'--config', u'credential.helper=', u'--config', u'credential.helper=!gcloud auth git-helper [email protected] --ignore-unknown $@']' returned non-zero exit status 128
我在网站和计算机上以同一用户身份登录。错误在哪里?
我已将a附加.bak
到以下文件:
- .git-credentials
- .gitconfig
- .gitcookies
现在正在工作。
PS:最后,我删除了文件。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句