【发布时间】:2016-02-10 02:15:43
【问题描述】:
我的 Mac 上有一个 gitlab 帐户,上面有我工作帐户所需的 ssh 密钥。我正在尝试为我所有的个人项目设置 gitlab。我在 gitlab 上创建了个人帐户并创建了 ssh 密钥。
我已将 ~/.shh/ 中的配置文件编辑为如下所示
Host markgameforeverything.gitlab.com
HostName gitlab.com
User git
PreferredAuthentications publickey
IdentityFile ~/.ssh/personal.pub
Host markbreadcreative.gitlab.com
HostName gitlab.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa.pub
但是我做不到
git pull
当我收到此错误时
GitLab: The project you were looking for could not be found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists
如果我输入
ssh -T git@gitlab.com
我明白了
Welcome to GitLab, *my work account welcome*!
(错误的帐户) 任何人都可以建议我可能采取的任何进一步步骤或在我的代码中看到错误吗?
【问题讨论】: