Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble using gcloud init

Tags:

git

macos

gcloud

Saw a sweet video on gcloud and wanted to give it a shot but was stymied at the start. I did the setup, downloaded the tools, ran gcloud auth login, all good. Tried to init a project and got an error I'm not sure how to fix.

$ 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 good measure:

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

I'm on a macbook air with OSX 10.9.2

Any ideas on what I may be doing wrong?

like image 741
user3583700 Avatar asked Oct 20 '22 09:10

user3583700


1 Answers

The integration between gcloud auth and git only works for git clients version 1.8 and up. Please try updating your git client and try again. We will add a more clear error message for this in a future release. Thanks!

like image 77
Mark Avatar answered Oct 23 '22 07:10

Mark