gpt4 book ai didi

git - 无法通过 Git Bash 克隆 git 存储库

转载 作者:行者123 更新时间:2023-12-05 03:58:24 24 4
gpt4 key购买 nike

尝试使用 git clone 克隆存储库时,它显示以下错误:

fatal: unable to access 'https://github.com/microsoft/c9-python-getting-started.git/': OpenSSL was built without SSLv2 support

使用最新的Git 2.23.0Windows 10 x64 Home Single Language

刚开始我的 Git 之旅,请帮助我越过这个障碍。

最佳答案

我刚刚在我自己的 W10 x64 PC 上克隆了它,没有任何问题

D:\git>git version
git version 2.23.0.windows.1

D:\git>git clone https://github.com/microsoft/c9-python-getting-started/
Cloning into 'c9-python-getting-started'...
remote: Enumerating objects: 166, done.
remote: Counting objects: 100% (166/166), done.
remote: Compressing objects: 100% (136/136), done.

Receiving objects: 100% (166/166), 3.11 MiB | 1.36 MiB/s, done.
Resolving deltas: 100% (30/30), done.

尝试解压PortableGit-2.23.0-64-bit.7z.exe任何你想要的地方,看看设置一个简化的 PATH(仅用于测试,在 CMD session 中)是否有帮助:

set GIT_HOME=C:\Path\to\Git
set PATH=%GIT_HOME%;%GIT_HOME%\bin;%GIT_HOME%\usr\bin;%GIT_HOME%\mingw64\bin;%PATH
git clone https://github.com/microsoft/c9-python-getting-started/

当然,您可能还有其他选择:使用 SSH URL 克隆

git clone git@github.com:microsoft/c9-python-getting-started.git

但更有趣的是先了解 HTTPS 失败的原因。

phd建议 in the comments代理问题,如 curl/curl issue 1433 中所示.

我在“Unknown SSL protocol error in connection”中提到了调试不稳定连接的各种方法,包括 2015 年第 3 季度 Git 2.6 http.sslVersion 设置,以强制 sslv3

关于git - 无法通过 Git Bash 克隆 git 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58047250/

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