Problem using gcloud init

Saw a sweet video on gcloud and wanted to give him a chance, but was at a dead end from the start. I did the setup, downloaded the tools, launched gcloud auth login, everything is fine. I tried to initiate the project and got an error. I am not sure how to fix this.

$ gcloud init my-awesome-project-555
Initialized gcloud directory in [/Users/freddy/my-awesome-project-555/.gcloud].
Cloning [https://source.developers.google.com/p/my-awesome-project-555/r/default] into [default].
Initialized empty Git repository in /Users/freddy/my-awesome-project-555/default/.git/
fatal: remote error: 403 Forbidden
ERROR: Unable to initialize project [my-awesome-project-555], cleaning up [/Users/freddy/my-awesome-project-555].
ERROR: (gcloud.init) Could not fetch repository.
$ 

For a good measure:

$ which git
/usr/local/git/bin/git
$ git --version
git version 1.7.12.1
$ 

I am in macbook mode with OSX 10.9.2

Any ideas on what I might be doing wrong?

+4
source share
4 answers

The integration between gcloud auth and git only works for git clients version 1.8 and higher. Try updating your git client and try again. We will add a clearer error message for this in a future version. Thank!

+3
source

403 , -awesome-project-555. (https://console.developers.google.com/project) 'gcloud init'.

0

403, . , " " . .netrc .

0

In my case, I reordered the authenticated email messages in the ~ / .netrc file by simply moving the account you want to the first line. I think this is a mistake, as it appears that when cloning or clicking, only the first credentials in the .netrc file are used.

0
source

Source: https://habr.com/ru/post/1538516/


All Articles