在初次使用git进行项目的版本管理时,如果是pull一个项目,往往会出现下面的错误提示:
gitee error:you do not have permission to pull from the repository解决方法

原因分析:

这是由于没有设置Gitee的SSH公钥。在未设置SSH公钥的情况下,可以使用git clone Gitee上的项目,但是不能git push项目到Gitee上,如果想push项目到Gitee,那么必须配置SSH公钥。生成公钥和配置公钥的办法,可以参考Gitee帮助里面的文章,里面做了详细的介绍https://gitee.com/help/articles/4191 。比你在百度里面不知所措的遨游强多了。

解决办法:

1、生成SSH公钥

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

gitee error:you do not have permission to pull from the repository解决方法

找到对应的目录:
gitee error:you do not have permission to pull from the repository解决方法

找到gitee进行配置:
gitee error:you do not have permission to pull from the repository解决方法

这里添加之后,在git push 的时候,发现还是会:
gitee error:you do not have permission to pull from the repository解决方法

可能是你的这台电脑以前使用过git,所以保存的账号和密码是其他人的,所以需要进行修改账号和密码,步骤如下:

  1. 进入控制面板
  2. 选择用户账户
  3. 选择管理你的凭据
  4. 选择Windows凭据
  5. 选择git保存的用户信息
  6. 选择编辑或者进行删除操作
  7. 完成

第一步:
gitee error:you do not have permission to pull from the repository解决方法

第二步:
gitee error:you do not have permission to pull from the repository解决方法

第三步:
gitee error:you do not have permission to pull from the repository解决方法

修改完成之后就OK了。

原文地址:https://www.cnblogs.com/e0yu/p/9828520.html

相关文章:

  • 2021-05-26
  • 2021-10-06
  • 2022-12-23
  • 2021-06-10
  • 2021-04-28
  • 2022-01-23
  • 2021-05-29
  • 2021-11-14
猜你喜欢
  • 2021-09-19
  • 2021-09-09
  • 2021-04-03
  • 2022-01-05
相关资源
相似解决方案