使用git时出现Please make sure you have the correct access rights and the repository exists.问题已解决。

使用git时,出现Please make sure you have the correct access rights and the repository exists.问题已解决。

今天我在使用git进行上传我的代码时,出现了一个错误,就是标题中的错误,这个错误很奇葩,我使用ssh -T [email protected]命令查看是否已经与github连接时,提示可以成功连接,但是使用git add命令添加不了文件,就是添加完之后,暂存区中显示没有文件,所有很无奈,试了很多次,最后还是看了一个比较笨的方法,这个方法就是重新配置github的ssh公钥。

配置github公钥的链接 

重新配置了ssh之后,发现问题就解决了。 


猜你喜欢

转载自www.cnblogs.com/jums/p/10631343.html