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
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:
[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:
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:
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.
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
I had to create a repository on Google Cloud Platform -> Development -> Repositories
Following GCloud code lab, I had to create default
repository there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With