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.,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1301字,纯文字阅读大概需要2分钟。
内容图文
参考:https://blog.csdn.net/jingtingfengguo/article/details/51892864,感谢老哥。
从码云克隆项目到新的服务器上,报错:
Please make sure you have the correct access rights and the repository exists.
解决:
1、首先我得重新在git设置一下身份的名字和邮箱(因为当初都忘了设置啥了,因为遇到坑了)进入到需要提交的文件夹底下(因为直接打开git Bash,在没有路径的情况下,根本没!法!改!刚使用git时遇到的坑。。。)
git config --global user.name "yourname"
git config --global user.email“your@email.com"
注:yourname是你要设置的名字,your@email是你要设置的邮箱。
2、删除.ssh文件夹(直接搜索该文件夹)下的known_hosts(手动删除即可,不需要git)
3、git输入命令
$ ssh-keygen -t rsa -C "your@email.com"(请填你设置的邮箱地址)
接着出现:
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/your_user_directory/.ssh/id_rsa):
请直接按下回车
然后系统会自动在.ssh文件夹下生成两个文件,id_rsa和id_rsa.pub,用记事本打开id_rsa.pub
将全部的内容复制
在码云添加SSH KEY
GitHub同理
Please make sure you have the correct access rights and the repository exists.
标签:ssh 参考 which sts png exist 服务 dir name
本文系统来源:https://www.cnblogs.com/ncby/p/11227349.html
内容总结
以上是互联网集市为您收集整理的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.所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。