无法在 Windows 中从 GitLab 克隆 git
Can't clone git from GitLab in Windows
我的 GitLab 中只有一个存储库有问题。我认为这取决于存储库中对象的数量。成功克隆了较小的项目。 Https 既不工作 Linux 也不工作 Windows。在 Windows 我得到错误:
........................................
........................................
remote: Counting objects: 100% (988/988)
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: protocol error: bad pack header
我还尝试在我的 LAN 网络中克隆存储库(ping < 1 毫秒)。同样的问题。
在 Linux 中,我可以通过 ssh 克隆存储库。但是在 Windows 中使用相同的私钥,我收到关于私钥格式无效的错误。密钥与 Linux OS 中加载的密钥相同。但是,如果我尝试通过 ssh 连接到 GitLab (git@git.domain),连接将是(只有 ssh,没有 git clone
)。我什至看到了欢迎信息。
解决方案是 https://github.com/PowerShell/Win32-OpenSSH/issues/1315 中的解决方法。
我的 GitLab 中只有一个存储库有问题。我认为这取决于存储库中对象的数量。成功克隆了较小的项目。 Https 既不工作 Linux 也不工作 Windows。在 Windows 我得到错误:
........................................
........................................
remote: Counting objects: 100% (988/988)
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: protocol error: bad pack header
我还尝试在我的 LAN 网络中克隆存储库(ping < 1 毫秒)。同样的问题。
在 Linux 中,我可以通过 ssh 克隆存储库。但是在 Windows 中使用相同的私钥,我收到关于私钥格式无效的错误。密钥与 Linux OS 中加载的密钥相同。但是,如果我尝试通过 ssh 连接到 GitLab (git@git.domain),连接将是(只有 ssh,没有 git clone
)。我什至看到了欢迎信息。
解决方案是 https://github.com/PowerShell/Win32-OpenSSH/issues/1315 中的解决方法。