Git Please make sure you have the correct access rights and the repository exists.错误及解决办法
出现问题原因:
git服务器没有发现存储本地的ssh密钥。
解决办法:
1.删除C:\Users\hhh.ssh文件
2.打开bash.exe输入命令ssh-keygen -t rsa -C “username” (注:username为你git登录的用户名)
4.然后一直按回车,运行完成时候会在C:\Users\hhh.ssh下生成id_rsa.pub,打开文件,复制到公钥中去就可以了
Git提交本地分支到远程是提示Please make sure you have the correct access rights and the repository exists.错误,
最新推荐文章于 2024-03-01 13:37:46 发布