使用 git pull 时身份验证失败

Authentication failed while using git pull

我正在尝试将远程存储库从 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': 

但我收到以下错误:

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

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

任何帮助将不胜感激。

使用此命令克隆

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

您也可以参考下方link了解更多 : https://help.ubuntu.com/lts/serverguide/git.html