【发布时间】:2018-11-02 09:41:59
【问题描述】:
我正在使用 Visual Studio,并试图从运行 gitlab 的服务器克隆在线存储库。让我们调用服务器https://gitlab.example.com
当我尝试克隆 repo 时出现以下错误
Remote: HTTP Basic: Access denied
Error encountered while cloning the remote repository: Git failed with a fatal error.
Authentication failed for 'https://gitlab.example.com/username/test.git/'
当我尝试时,系统会提示我输入服务器的用户名和密码。我输入了创建 repo 的用户的用户凭据。
我在 stackoverflow 上找到了 similar problem with an answer,但这对我不起作用。
我正在使用 Visual Studio 2017 Enterprise 15.7.2
【问题讨论】:
-
尝试将您的用户名放入 url: 'username@gitlab.example.com/username/test.git' 可能会有所帮助。我也在使用 VS 2017,但我从不使用内置的 git 'thing'。
标签: git visual-studio gitlab git-clone