我刚刚将其克隆到我自己的 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 https://github.com/git-for-windows/git/releases/download/v2.23.0.windows.1/PortableGit-2.23.0-64-bit.7z.exe任何你想要的地方,看看设置一个简化的路径(仅用于测试,在 CMD 会话中)是否有帮助:
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 [email protected] /cdn-cgi/l/email-protection:microsoft/c9-python-getting-started.git
但首先了解 HTTPS 失败的原因会更有趣。
phd https://stackoverflow.com/users/7976758/phd建议在评论中 https://stackoverflow.com/questions/58047250/cannot-clone-git-repository-via-git-bash/58047336?noredirect=1#comment102494962_58047336代理问题,如图所示curl/curl第 1433 期 https://github.com/curl/curl/issues/1433.
我在《连接中出现未知的 SSL 协议错误 https://stackoverflow.com/a/20492254/6309” 调试不稳定连接的各种方法,包括 2015 年第 3 季度的 Git 2.6http.sslVersion
设置,强制sslv3
.