尝试使用 SSH 克隆远程 Git 存储库时,出现以下错误:
git clone user@remote-repo:project.git .
remote: Counting objects: 187444, done.
remote: Compressing objects: 100% (73430/73430), done.
client_loop: send disconnect: Broken pipe.06 MiB | 4.04 MiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed
我的环境具有以下规格:
- WSL2(Windows 子系统 4 Linux)
git --version git version 2.30.1
git 包可以在这里找到https://pkgs.alpinelinux.org/package/edge/main/x86_64/git
uname -a
Linux 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 Linux
2021-03-09-07:11AM wsl@Alpine:~$ more /etc/issue
Welcome to Alpine Linux 3.10
Kernel \r on an \m (\l)
我不知道为什么会这样。是 Alpine 上的突发问题还是内核配置问题?WSL?我怀疑它是远程主机。远程主机适用于 SSH,也适用于每个非 WSL 用户的克隆。