我正在使用 Visual Studio Code 学习 Git。
通过单击 Visual Studio Code 中的 Source Control 选项卡登录到我的GitLab帐户。同时,请求了登录名和密码,之后我就可以使用远程存储库了。
我正在尝试在 GitLab 上克隆另一个存储库,我可以通过登录名和密码访问该存储库。在对话框中我输入https://gitlab.com/myproject/myproject.git,以及个人访问令牌和 url https://gitlab.com
我没有收到第二次对我的 GitLab 帐户的登录名和密码的请求,我在终端中读到:
> git clone https://gitlab.com/myproject/myproject.git e:\work\myproject --progress
Cloning into 'e:\work\myproject'...
remote: The project you were looking for could not be found.
fatal: repository 'https://gitlab.com/myproject/myproject.git/' not found
Visual Studio Code 中的 GitLab 登录名和密码在哪里更改,可以重置吗?如果我没记错的话,问题出在身份验证上。我就如何解决它寻求帮助和建议。
输入后,登录名和密码将保存在系统中,并在以后访问远程存储库时自动使用。您可以在此处删除或编辑它们:
还有一个适用于 Windows 的Git 凭证管理器工具,为 Windows 提供 Git 凭证的安全存储,并与
git credential-manager [<command> [<args>]]. 您可以在链接中阅读有关与他合作的更多信息。