使用git pull时身份验证失败

时间:2015-11-19 06:24:32

标签: git google-cloud-platform google-cloud-repository

我正在尝试将远程存储库从Google云存储库克隆到本地存储库。我正在研究Kubuntu 14.04系统

首先,我使用

创建了一个空的本地git存储库
git init test

然后我尝试了以下命令

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': 

但我得到以下错误:

  

致命:https://source.developers.google.com/p/{project_id}/

的身份验证失败

Usernamepassword是正确的,我试图在SO上找到解决方案但是GITHUB而不是Google cloud repository

任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:4)

使用此命令克隆

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

您还可以参考以下链接以获得更多理解 :https://help.ubuntu.com/lts/serverguide/git.html