当前位置:   article > 正文

tortoiseGit fatal: Could not read from remote repository._fatal: could not read from remote repository. plea

fatal: could not read from remote repository. please make sure you have the

1、问题场景:

使用tortoiseGit工具pull代码的时候报错

git.exe pull --progress -v --no-rebase "origin"

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

无法从存储库中读取,可能是因为权限问题。

由于tortoisegit使用的是putty的.ppk格式的密钥,而gitlab必须使用rsa密钥,因此使用其自带的工具,在开始菜单里找到tortoisegit,选择他的puttygen工具来生成密钥

2、解决方式

点击开始菜单,按照图示操作

点击generate,此时会开始生成密钥,时间比较长

成功之后,点击 sava private key,save键把私钥保存为.ppk格式,选择一个目录保存test.ppk

然后,开始菜单,找到pageant

'

点击add key,选择刚才保存的test.ppk,添加成功。

鼠标右键,选择TortoiseGit——>setting。signiing key选择上一步保存的文件。

最后一步,修改ssh。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小桥流水78/article/detail/963670
推荐阅读
相关标签
  

闽ICP备14008679号