Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"gcloud source repos clone default local-directory-name" not working

I am trying to clone my project and since the "gcloud init project-name" is deprecated I followed the following steps.

1) "gcloud init" and entered the right options in the interactive menu.

2) "gcloud source repos clone default local-directory-name"

but it keeps asking me for user name and password.

I also executed "gcloud auth login" and "git config credential.helper gcloud.sh" commands

but still asks me for username and password.

like image 764
nakul Avatar asked Dec 21 '25 01:12

nakul


1 Answers

This is related to a bug in the Cloud SDK that will be fixed in version 0.9.82.

Apologies for the inconvenience! In the mean time, you should be able to work around by running git clone directly:

> git clone 'https://source.developers.google.com/p/PROJECTID/r/default' --config credential.helper=git-credential-gcloud.cmd

Note: make sure that git-credential-gcloud.cmd is on your %PATH% first, and make sure to substitute your project's ID for PROJECTID.

like image 196
Zachary Newman Avatar answered Dec 22 '25 16:12

Zachary Newman