Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud Repository push fatal: remote error: Forbidden

I have just signed up to try google cloud repository and am trying the getting started list and failed on the

git remote add google https://source.developers.google.com/p/*name-xxxxxx*/r/default

git push google master
fatal: remote error: Forbidden

I can't tell if they think I don't have permission, I am the owner of the organization project

I created a repository in the Source Tools Console

I then attempt to follow their direction to create a local repository and it fails:

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 [email protected] --ignore-unknown $@']' returned non-zero exit status 128
like image 206
Nefarious Avatar asked Jan 31 '17 00:01

Nefarious


People also ask

How do I push and pull from a Google Cloud repository?

To push from your local Git repository to a Google Cloud repository, enter the following command: To pull from a Google Cloud repository to your local Git repository, enter the following command: To view the commit history, enter the following command: After you push your local repository to your local machine, you can:

What is the name of my Google Cloud repository?

[REPO_NAME] is the name of your Google Cloud repository. Google Cloud repositories are fully featured Git repositories. You can use the standard set of Git commands to interact with these repositories, including push, pull, clone, and log. To push from your local Git repository to a Google Cloud repository, enter this command:

What Git commands can I use to interact with Google Cloud?

You can use the standard set of Git commands to interact with these repositories, including push, pull, clone, and log. To push from your local Git repository to a Google Cloud repository, enter the following command: To pull from a Google Cloud repository to your local Git repository, enter the following command:

Why am I getting an error when trying to push to GitHub?

When you try to push changes to a GitHub repository from an A2 Hosting server using an HTTPS URL, you receive the following error message: You typed an incorrect password.


2 Answers

It looks there was a conflict on credential manager between gcloud and existing git setup.

I ran the following to unset the credential manager and it allowed me to clone the gcloud repo.

>  git config --system --unset credential.helper
like image 121
gtiwari333 Avatar answered Nov 15 '22 07:11

gtiwari333


I had to create a repository on Google Cloud Platform -> Development -> Repositories

Following GCloud code lab, I had to create default repository there.

like image 33
ViliusK Avatar answered Nov 15 '22 05:11

ViliusK