git报错: Could not read from remote repository.Please make sure you h ...

嚴華  金牌会员 | 2024-10-18 21:06:25 | 显示全部楼层 | 阅读模式
打印 上一主题 下一主题

主题 915|帖子 915|积分 2745

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

  1. ERROR: Permission to apache/flink-cdc.git denied to ysksolution.
  2. fatal: Could not read from remote repository.
  3. Please make sure you have the correct access rights
  4. and the repository exists.
复制代码
出现这个标题,主要是因为ssh-key没有设置,解决方案:
(1)查抄git初次设置,是否设置了user和email
设置user和邮箱,初次使用,必须要设置
  1. git config --global user.name username
  2. git config --global user.email email
复制代码
查抄内容
  1. git config --list
复制代码
(2)取消各种代理
  1. git config --global --unset http.proxy
  2. git config --global --unset https.proxy
复制代码
(3)设置ssh key
  1. rm -rf ~/.ssh/
  2. ssh-keygen -t rsa -C email(邮箱名)
复制代码
将生成的公钥复制到github中,进入setting界面


免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

嚴華

金牌会员
这个人很懒什么都没写!
快速回复 返回顶部 返回列表