我无法使用端口2222克隆我有权访问的存储库。当我尝试使用git clone git@<address>:2222/<user>/<repo>.git
,我明白了
Cloning into '<repo_name>'...
remote:
remote: ========================================================================
remote:
remote: The project you were looking for could not be found or you don't have permission to view it.
remote:
remote: ========================================================================
remote:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
2条答案
按热度按时间rekjcdws1#
首先检查一下GitLab认为你和谁在一起:
您应该会收到一条
Welcome to GitLab, @username!
消息。如果
@username
不是作为协作者添加到项目中的用户,这将解释错误消息。或者,如果您没有看到欢迎消息,请仔细检查“Use SSH keys to communicate with GitLab”,并确保您的SSH公钥已注册到正确的用户SSH设置页面。
afdcj2ne2#
好的,这是业主方面的问题。他没有给我所需的完全权限。已经解决了。对不起,打扰了:)