Could not read from remote repository.

  • Post author:
  • Post category:其他


错误Could not read from remote repository.Please make sure you have the correct access rights

and the repository exists,解决方案:

1、执行命令 open ~/.ssh,查看是否包含id_rsa.pub文件。

2、存在id_rsa.pub文件跳到第三步,不存在id_rsa.pub文件,执行命令 ssh-keygen -t rsa -C “xxxxx@xxxxx.com” 生成新的id_rsa.pub文件。

3、执行命令 cat ~/.ssh/id_rsa.pub 或者 vim ~/.ssh/id_rsa.pub 查看文件内容,复制文件添加到gitee的SSH公匙:登录gitee ->设置->SSH公匙。再次执行其他命令!



版权声明:本文为qq_33152517原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。