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 rightsERROR: Permission to apache/flink-cdc.git denied to ysksolution.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
出现这个标题,主要是因为ssh-key没有设置,解决方案:
(1)查抄git初次设置,是否设置了user和email
设置user和邮箱,初次使用,必须要设置
git config --global user.name username
git config --global user.email email
查抄内容
git config --list
(2)取消各种代理
git config --global --unset http.proxy
git config --global --unset https.proxy
(3)设置ssh key
rm -rf ~/.ssh/
ssh-keygen -t rsa -C email(邮箱名)
将生成的公钥复制到github中,进入setting界面
https://i-blog.csdnimg.cn/blog_migrate/0a2709f0de054bd0999a2b46ada6e70f.png
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页:
[1]