gpt4 book ai didi

git clone --recursive 失败

转载 作者:行者123 更新时间:2023-12-05 01:45:55 29 4
gpt4 key购买 nike

我在尝试递归克隆 git 存储库时遇到了一个奇怪的问题:

# git clone --recursive git@github.com:eteran/edb-debugger.git
Initialized empty Git repository in /edb-debugger/.git/
The authenticity of host 'github.com (192.30.253.113)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

在另一台机器上尝试返回不同的结果:

$ git clone --recursive git@github.com:eteran/edb-debugger.git
Cloning into 'edb-debugger'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

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

我不确定不一致的错误是怎么回事,或者为什么它在不久之前工作得很好时突然开始发生。还有两个(单独的)其他问题(¹ )提到了每个错误,但是,这将两个错误封装在一个不相关的问题中。

知道问题出在哪里吗?

最佳答案

另一种简单的解决方案,而不是弄乱键...

强制使用 https 而不是 git

git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://

强制使用 git 而不是 https

git config --global url."git@github.com:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://

关于git clone --recursive 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39286354/

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