美文网首页
Please make sure you have the co

Please make sure you have the co

作者: 小熊翻译App | 来源:发表于2019-04-20 09:23 被阅读0次

出现此错误的环境:

本地设置设置了多个github账号的ssh key,在cd文件夹后远程连接的git仓库是另外一个github账号
解决办法:
  1. cd到文件夹后,先连接需要clone的github仓库:
git remote add origin git@github.com:aaa-app/project.git
  1. 查看连接到的远程账号:
ssh -T git@github.com

此时会出现Hi gitcell! You've successfully authenticated, but GitHub does not provide shell access.
gitcell就是项目所在的github账号

  1. clone远程仓库的项目
git clone git@github.com:aaa-app/project.git

相关文章

网友评论

      本文标题:Please make sure you have the co

      本文链接:https://www.haomeiwen.com/subject/ienhgqtx.html