gitgoogle-cloud-platformgoogle-cloud-repository

Authentication failed while using git pull


I am trying to clone Remote repository into Local repository from Google cloud repository. I am working on Kubuntu 14.04 system

First i have create empty local git repository using

git init test

then i have tried with following command

cd test
git pull https://source.developers.google.com/p/{project_id}
Username for 'https://source.developers.google.com': #########
Password for 'https://########@source.developers.google.com': 

But i get following error:

fatal: Authentication failed for https://source.developers.google.com/p/{project_id}/

Username and password are correct i have tried to find solution on SO but it is about GITHUB not Google cloud repository.

Any help will be appreciated.


Solution

  • use this command to clone

    git clone https://source.developers.google.com/p/{project_id}
    

    You can also refer below link for more understanding : https://help.ubuntu.com/lts/serverguide/git.html