gpt4 book ai didi

Gitolite 克隆失败

转载 作者:太空狗 更新时间:2023-10-29 14:47:50 27 4
gpt4 key购买 nike

每当我尝试在我的笔记本电脑上克隆任何存储库时,我都会收到此消息:

Unable to open connection:
Host does not existfatal: Could not read from remote repository.

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

但是,当我从我的桌面使用相同的私钥时,我可以毫无问题地进行克隆。

客户端都是 Windows 上的 TortoiseGit。

我想我一定做错了什么,但我想不通为什么,所以我尝试将克隆的 git 存储库从我的桌面复制到我的笔记本电脑,现在我可以修改(推/pull/提交)到那个存储库从我的笔记本电脑。

所以在某处身份验证有效,但我无法克隆。

最糟糕的是,这突然发生在我们团队的另一名成员身上。

我做了什么:

  1. 安装 TortoiseGit
  2. 安装msysgit
  3. 使用私钥在 putty 中设置 ssh session
  4. 对该 session 进行 git 克隆(失败)

和我在台式机上做的一样,但它能正常工作,在笔记本电脑上却失败了。

但是手动复制存储库并进行更改确实有效,就像它只是被拒绝的 git 克隆一样。

最佳答案

您可以尝试“git push to remote repository “Could not read from remote repository””中提到的各种调试技巧。

但首先,检查当使用 openssh 而不是 plink.exe 进行 ssh 通信时问题是否仍然存在(如 this question 中所述)。

您可以在 Settings>Network>SSH 中更改 TortoiseGit 中的设置:

network

关于Gitolite 克隆失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16173685/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com