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.
856 0
git 提示:fatal: Could not read from remote repository.
|
网络安全 开发工具 git
git 出现错误:kex_exchange_identification: read: Connection reset by peer fatal
git 出现错误:kex_exchange_identification: read: Connection reset by peer fatal
git 出现错误:kex_exchange_identification: read: Connection reset by peer fatal
|
4月前
|
监控 安全 开发工具
git fatal: detected dubious ownership in repository at ‘xxx‘ 彻底解决方法
调整文件所有权和权限后,你应该能够无误地进行Git操作。持续的维护与监控文件系统的安全性能降低将来遇到类似问题的风险,并保证团队能够高效协作。如果你是在团队环境中工作,建议建立明确的协作规则和文件管理实践,以避免此类问题。
466 3
|
5月前
|
开发工具 git
git error 已解决【Another git process seems to be running in this repository, e.g. an editor opened by】
git error 已解决【Another git process seems to be running in this repository, e.g. an editor opened by】
78 2
【完美解决】Github action报错remote: Write access to repository not granted.
【完美解决】Github action报错remote: Write access to repository not granted.
|
网络安全 开发工具 git
git clone之报错git@gitee.com:Permission denied (publickey).fatal: Could not read from remote repository
git clone之报错git@gitee.com:Permission denied (publickey).fatal: Could not read from remote repository
534 0
|
6月前
|
缓存 开发工具 git
Git Cloning into :error: RPC failed
Git Cloning into :error: RPC failed
96 0
|
6月前
|
网络安全 数据安全/隐私保护
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
961 0
|
开发工具 git
【Git】push代码时候报错,出现fatal: unable to access xxx Recv failure: Connection was reset
【Git】push代码时候报错,出现fatal: unable to access xxx Recv failure: Connection was reset
218 0