Linux 虚拟机的 HTTPS TLS 连接 GitHub 不稳定
直接用 SSH(100% 稳)
1. 生成 SSH key
ssh-keygen -t rsa -b 4096 -C "youremail@example.com"一路回车
2. 查看 key
cat ~/.ssh/id_rsa.pub复制内容 → GitHub:
Settings → SSH and GPG keys → New SSH key
3. 用 SSH clone
git clone git@github.com:lxx/xxxx_demo.git