全球主机交流论坛

标题: git问题求助 [打印本页]

作者: 萌白c    时间: 2022-4-29 22:34
标题: git问题求助
本帖最后由 萌白c 于 2022-4-29 22:35 编辑

系统:centos 7
系统中已经存在一个repo,但是当clone另一个仓库时,出现以下错误:
  1. ERROR: Repository not found.
  2. fatal: Could not read from remote repository.

  3. Please make sure you have the correct access rights
  4. and the repository exists.
复制代码


(注:是私人仓库,已将公钥部署到仓库)

根据文档:在一台服务器上使用多个仓库:https://docs.github.com/cn/developers/overview/managing-deploy-keys#using-multiple-repositories-on-one-server
  1. Host github.com-repo-0
  2.         Hostname github.com
  3.         IdentityFile=/home/user/.ssh/repo-0_deploy_key

  4. Host github.com-repo-1
  5.         Hostname github.com
  6.         IdentityFile=/home/user/.ssh/repo-1_deploy_key
复制代码


但还是不行,还是上面的错误。

请问有人遇到过吗?该怎么解决呢
作者: 菜鸡这斯    时间: 2022-4-29 22:37
这个文档是解决本地多个git账户共存问题的,不是仓库
作者: 萌白c    时间: 2022-4-29 22:41
菜鸡这斯 发表于 2022-4-29 22:37
这个文档是解决本地多个git账户共存问题的,不是仓库

那为什么无法clone呢,使用ssh -T ssh -T [email protected]测试了,只有已经连接成功的仓库信息。




欢迎光临 全球主机交流论坛 (https://91ai.net/) Powered by Discuz! X3.4