针对git的ssh问题:Please make sure you have the correct access rights and the repository exists
·
Please make sure you have the correct access rights and the repository exists.。SSH公钥解决
git问题
1. 问题描述

2. 原因分析
可能是ssh不起作用了冲突了。
3. 解决方法
-
先检查Git的全局设置
git config --list
-
如果
user.name和user.email和自己想要设置的一样,那么可以跳过这一步。如果不一样,想要进行Git 的全局配置,那么就要使用以下命令git config --global user.name "想要设置的name" git config --global user.email "你的邮箱"
-
查看Git的全局配置,确保正确
git config --list -
修改本地.ssh
ssh-keygen -t rsa -C "之前设置的邮箱"
-
打开
C:\Users\你的用户名\.ssh\id_rsa.pub,复制id_rsa.pub文件里的全部内容。 -
打开GitHub或码云上的设置,打开ssh公钥。粘贴生成即可解决

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐



所有评论(0)