无法在 MacOS 10 上克隆 Google 源存储库

Can't clone Google Source Repository on MacOS 10

当我打电话时

gcloud source repos clone my-service --project=tools-project

在云端 Shell 我可以从 Google 源存储库成功克隆 my-service 存储库。

然而,当我在 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 --account=XXX@XXX.io --ignore-unknown $@']' returned non-zero exit status 128

我在网站和计算机上使用相同的用户登录。错误可能在哪里?

我已将 .bak 附加到以下文件:

 - .git-credentials 
 - .gitconfig 
 - .gitcookies

现在可以了。

P.S.: 最后我把文件删了