我尝试简单地使用 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'
通过我的 SSH 密钥,我收到的消息是:
Cloning into 'frontend'...
[email protected] /cdn-cgi/l/email-protection: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我能做些什么?
尝试使用您尝试用于克隆存储库的相同凭据注销并登录。如果问题仍然存在:在 Windows 中,搜索Credential Manager
。在那选择Windows manager
。选择您的 Gitlab 凭据并进行修改。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)