When I call
gcloud source repos clone my-service --project=tools-project
inside the Cloud Shell I can successfully clone the my-service
repository from Google Source Repository.
However when I call the same command on MacOS I get the following error:
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
I am logged in with the same user on the website and on the computer. Where could the error be?
I have appended a .bak
to the following files:
- .git-credentials
- .gitconfig
- .gitcookies
Now it is working.
P.S.: In the end I have deleted the files.