4

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.

Rajesh Jadav
  • 12,801
  • 5
  • 53
  • 78
  • 2
    The docs say you have to install a `credential.helper` for working with the repos: https://cloud.google.com/tools/cloud-repositories/docs/cloud-repositories-local-repository Did you do that? – eckes Nov 19 '15 at 11:45
  • 1
    @eckes I have followoed that link and try this command: 'git config credential.helper gcloud.sh' and it works after that. Thank you so much – Rajesh Jadav Nov 19 '15 at 11:52

1 Answers1

4

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

Barett
  • 5,826
  • 6
  • 51
  • 55
Anurag
  • 1,162
  • 6
  • 20
  • you can try **git remote update ** : To fetch remote branches locally – Anurag Nov 19 '15 at 06:55
  • 1
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/low-quality-posts/10261023) – bfontaine Nov 19 '15 at 14:02
  • 1
    @bfontaine I disagree that this is a link-only answer. The "essential parts" are given here in the form of a command. – Barett Nov 19 '15 at 21:21
  • @Barett i agree with you. – Rajesh Jadav Nov 20 '15 at 03:22