无法在 Windows 10 从 GitLab 克隆 git 存储库

Can't clone git repo from GitLab on Windows 10

Windows10(64 位)

我可以在 Windows 10 上从 GitHub 成功克隆 git 存储库。

不错。

但是我无法从 GitLab 克隆 git 存储库。

我收到错误:

git clone https://gitlab.com/some-project/android

Cloning into 'android'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/some-project/android.git/'

但是如果我在 Linux 机器上尝试相同的命令(git clone https://gitlab.com/some-project/android) 我会成功从 GitLab 克隆 git repo。

为什么我无法在 windows 10 台机器上下载 git 存储库?

转到 Control Panel -> 搜索 Credential Manager -> Windows Credentials -> 使用你登录的 GitLab 用户搜索 git:https://gitlab.comEdit在您的 linux 机器中,然后重试。