转自:https://zhuanlan.zhihu.com/p/42450931

在git clone github 项目时出现 如下问题:fatal: 无法读取远程仓库。请确认您有正确的访问权限并且仓库存在。

git clone github 无法读取远程操作库

我的解决方案是:

1.如果你没有生成SSH Key,那就输入命令

ssh-****** -t rsa -C "http://github.com"

git clone github 无法读取远程操作库

中间让你输入时选择y,其它按enter键就行,生成ssh key后找到id_ras.pub

git clone github 无法读取远程操作库

复制里边的内容到你的github账号里

2. 打开你的github账号找到SSH and GPG keys

git clone github 无法读取远程操作库

点击进入把刚才复制的内容粘贴到key中即可,title任意取名

git clone github 无法读取远程操作库

然后就可以Git clone 你的代码了

相关文章:

  • 2022-02-09
  • 2021-04-10
  • 2021-07-23
  • 2021-08-18
  • 2021-07-17
  • 2021-10-23
  • 2021-10-27
  • 2021-09-02
猜你喜欢
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-11-27
  • 2021-09-16
  • 2021-11-17
  • 2022-12-23
相关资源
相似解决方案