Hello again,
I have been able to authenticate successfully.
clicked on the Add Credentials drop down then selected service accounts.
I created a service account with a JSON key type and it downloaded automatically to my local disk.
From my command prompt I activated my service account using the command
gcloud auth activate-service-account --key-file KEYFILE
where KEYFILE points to the JSON file downloaded to my local disk.
then I logged in using the command
gcloud auth login
My browser was opened and I was prompted to select an account for log in.
I logged in with my regular gmail account which is the admin account for the project.
and Viola!! login was successful.
Nonetheless, I got stuck again while trying to initialize my project.
I tried using this command
gcloud init my-project-id
but got
WARNING: `gcloud init` will be changing very soon and will be incompatible with
old usage. To clone project git repositories use `gcloud beta source repos clone
` command.
Initialized gcloud directory in [d:\p12\my-project-id\.gcloud].
default].
ERROR: Unable to initialize project [my-project], cleaning up [d:\p12\my-project-id].
ERROR: (gcloud.init) Cannot find git. Please install git and try again.
your favorite package manager to install it on your computer.
i tried gain with this command
gcloud beta source repos clone default .
where default is a folder in the current directory and I assumed . is the current directory
but got a long error message ending with
WindowsError: [Error 2] The system cannot find the file specified
Please, what am I doing wrong?