首页 > 其他 > 详细

码云clone提示“you do not have permission to pull from the repository”

时间:2019-05-02 11:38:47      阅读:2698      评论:0      收藏:0      [点我收藏+]

使用git进行项目下载,换了电脑,配置了账号和邮箱后,pull一个私有项目的时候,出现如下问题:

技术分享图片

原因分析: 

由于没有设置Gitee的SSH公钥。生成公钥和配置公钥的办法,可以参考Gitee帮助里面的文章,里面做了详细的介绍https://gitee.com/help/articles/4191 。

解决办法:

1、生成SSH公钥,输入下面命令,按三次回车

ssh-keygen -t rsa -C "xxxxx@xxxxx.com"  

技术分享图片

 

找到对应的目录:

技术分享图片

打开id_rsa.pub,复制里面的公钥

2、找到gitee进行配置:

技术分享图片

3、找到项目,通过SSH下载即可;

码云clone提示“you do not have permission to pull from the repository”

原文:https://www.cnblogs.com/zhangling98/p/10801580.html

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