tortoiseGit fatal: Could not read from remote repository.

简介: git.exe pull --progress -v --no-rebase "origin"fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.无法从存储库中读取,可能是因为权限问题。由于tortoisegit使用的是putty的.ppk格式的密钥,而gitlab必须使用rsa密钥,因此使用其自带的工具,在开始菜单里找到tortoisegit,选择他的puttygen工具来生成密钥—

1、问题场景:


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

289b0cbdd8a119907d34629fa4ff6ed.png

401c9472a99d8893c2646133228a6e1.png

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、解决方式


6bf0de9660ebc314e0cc107d5b4a020.png点击开始菜单,按照图示操作

c3a24f72ab620d2295fc62a7c8697aa.png


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


f6d2dea9377cdf360f84a78bcafdf47.png



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


dad23278eba6fbadd9beb2e54605fa3.png


然后,开始菜单,找到pageant

fd8410a29c151cbcc20bba4e896e947.png


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

d9d1ec88d3553fe4996d052ccb0abb5.png


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


9a9f54fae4e563a28519cfb238845f0.png


最后一步,修改ssh。

2735cd51c7d67c51d072d1c2a4815f4.png






目录
相关文章
|
安全 网络安全 开发工具
git 提示:fatal: Could not read from remote repository.
git 提示:fatal: Could not read from remote repository.
2341 0
git 提示:fatal: Could not read from remote repository.
【QT】创建、打开QT项目只显示.pro文件的问题解决
【QT】创建、打开QT项目只显示.pro文件的问题解决
4519 0
|
JavaScript 前端开发
React craco 解决 webpack < 5 used to include polyfills for node.js core ...
React craco 解决 webpack < 5 used to include polyfills for node.js core ...
1110 0
|
Shell 网络安全 开发工具
Git常见问题解决:解决TortoiseGit的No supported authentication methods available错误。
总的来说,遇到"No supported authentication methods available"这个问题,就像是钓到了一条刺猬。解决它就像是给刺猬穿上一件新衣服。首先,你需要生成新的SSH秘钥对,然后,将你的公钥添加到Git服务器,这样,你的SSH客户端就能认出刺猬了。接下来,将你的私钥添加到SSH agent,让你的SSH客户端拥有这个刺猬的“身份证”。最后,你还需要告诉TortoiseGit,如何使用这个新的SSH秘钥,也就是将刺猬的“身份证”告诉TortoiseGit。只需要做到这四点,你就可以顺利地解决这个问题了。希望这个步骤为步的解决方法能够帮到你解决这个问题,让你的代码
1388 21
|
网络安全 开发工具 git
mac git clone命令提示git@gitee.com: Permission denied (publickey).问题修复
mac git clone命令拉取gitee上项目代码时提示密钥问题
1169 19
|
Unix 网络安全 数据安全/隐私保护
putty Faual Error:No supported authentication methods available (server sent: publickey)
putty Faual Error:No supported authentication methods available (server sent: publickey)
3568 0
|
运维 网络安全
解决ssh: connect to host IP port 22: Connection timed out报错(scp传文件指定端口)
通过这些步骤和方法,您可以有效解决“ssh: connect to host IP port 22: Connection timed out”问题,并顺利使用 `scp`命令传输文件。
14390 7
|
开发工具 git
解决Git push提交时Permission denied(publickey).Could not read from remote...的问题
解决Git push提交时Permission denied(publickey).Could not read from remote...的问题
988 0
|
存储 开发工具 数据安全/隐私保护
git报错The project you were looking for could not be found 解决方式
git报错The project you were looking for could not be found 解决方式
4227 1
|
存储 运维 网络安全
阿里云云效操作报错合集之推送代码到仓库报错:Could notread from remote repository.,如何解决
本合集将整理呈现用户在使用过程中遇到的报错及其对应的解决办法,包括但不限于账户权限设置错误、项目配置不正确、代码提交冲突、构建任务执行失败、测试环境异常、需求流转阻塞等问题。阿里云云效是一站式企业级研发协同和DevOps平台,为企业提供从需求规划、开发、测试、发布到运维、运营的全流程端到端服务和工具支撑,致力于提升企业的研发效能和创新能力。
下一篇
开通oss服务