• notice
  • Congratulations on the launch of the Sought Tech site

Permission denied for Google source code repository

I've been using the Google source code repository for years, and now when I try to push or pull, My permission is denied.

I've checked everything I can think of: p>

  • Updated gcloud: gcloud components update
  • Reinitialize: gcloud init
  • Reinstall gcloud tools
  • Updated git
  • Clone the repo to a new directory (no permissions)
  • I can still access the console:https://source.cloud.google.com/project/default
  • Close and reopen the terminal
  • I am the owner of the organization and project, but I also added all source archive permissions
  • font>

The above procedure sets up my account and project, so these are all set.

I just tried it on another computer (Windows 10) and I didn't get permission denied.This issue is related to my Mac settings...

Here are some examples:

$ git pull
remote: PERMISSION_DENIED: The caller does not have permission
remote: [type.googleapis.com/google.rpc.RequestInfo]
remote: request_id: "xxx"
fatal: unable to access 'https://source.developers.google.com/p/project/r/default/': The requested URL returned error: 403

$ gcloud source repos clone default--project=project
Cloning into '/Users/user/TMP/default'...
remote: PERMISSION_DENIED: The caller does not have permission
remote: [type.googleapis.com/google.rpc.RequestInfo]
remote: request_id: "xxx"
fatal: unable to access 'https://source.developers.google.com/p/project/r/default/': The requested URL returned error: 403
ERROR: (gcloud.source.repos.clone) Command '['git', 'clone', 'https://source.developers.google.com/p/project/r/default', '/Users/user/TMP/default', '--config', 'credential.https://source.developers.google.com/.helper=', '--config', 'credential.https://source.developers.google.com/.helper=!gcloud auth [email protected] $@']' returned non-zero exit status 128.

$ git clone ssh://[email protected]@source.developers.google.com:2022/p/project/r/default
Cloning into 'default'...
[email protected]@source.developers.google.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

uj5u.com enthusiastic netizens replied:

The first thing you can do is check the repository details and checkaccess levelRequired access levelwrite

Then go to Tools->Options and Authentication and wash out all passwords, git saved passwordOr you can use the following command:

git config--system-l

You will get, credential.helper=!github--credentials

then use git config--system--unset credential.helperwash out saved credentials (make sure to run as administrator)

For more information on washing out credentials?? see thisLink

If washing out credentials doesn't work, here's another link to help youUse SSH or modify the HTTPS URL to resolve403 error

uj5u.com enthusiastic netizens replied:

I found another A answer to a similar question.

I didn't mention the same file there, but I washed it out~/.netrc, now git is working.

the.netrcThe archive has been around since 2017.Not sure why it's different now...

Tags

Technical otaku

Sought technology together

Related Topic

1 Comments

author

lipitor 40mg for sale & lt;a href="https://lipiws.top/"& gt;buy atorvastatin without preion& lt;/a& gt; generic lipitor 80mg

Vllrja

2024-03-08

Leave a Reply

+