ToB企服应用市场:ToB评测及商务社交产业平台

标题: git报错: Could not read from remote repository.Please make sure you h [打印本页]

作者: 嚴華    时间: 2024-10-18 21:06
标题: git报错: Could not read from remote repository.Please make sure you h
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企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) Powered by Discuz! X3.4