首页 > 数据库技术 > 详细

[Git]Please make sure you have the correct access rights and the repository exists

时间:2017-08-26 13:21:40      阅读:898      评论:0      收藏:0      [点我收藏+]

这个问题是这样,需要在已有github账号的A机器上,再创建一个github账号,新账号创建完毕,将代码通过机器A push上之后,再另一台机器B,clone 这个项目时报出了如下错误:

Permission denied (publickey).
fatal: Could not read from remote repository.

解决方式是:

在clone代码的时候要使用https的形式。

https://github.com/accountName/projectname.git

 

另外,在机器A上配置两个git账户,需要重新生成sshkey,并且要将这两个github账户的ssh文件进行区分 id_rsa_old / id_rsa_new ,其次要通过配置文件对这两个账号进行配置,在使用的时候切换比较方便。

类似的教程,网上资源很多,多参考几个文档即可。 

[Git]Please make sure you have the correct access rights and the repository exists

原文:http://www.cnblogs.com/mrdooo/p/7435050.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!