Gitlab 克隆项目:身份验证失败

sir*_*ver 3 gitlab

我试图简单地使用 HTTPS 和 SSH 克隆一个 Gitlab 项目,但它们都不起作用并打印回一条验证失败的消息。

尝试使用 https 地址时:

git clone https://gitlab.com/project.aa/project.git

Cloning into 'frontend'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/project.aa/project.git'
Run Code Online (Sandbox Code Playgroud)

使用我的 SSH 密钥,这就是我得到的消息:

Cloning into 'frontend'...
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)

我能做什么?

Bog*_*ota 7

尝试注销并使用您尝试用于克隆存储库的相同凭据登录。如果问题仍然存在:在 Windows 中,搜索Credential Manager. 在那个选择Windows manager. 选择您的 Gitlab 凭据并进行修改。