git克隆历史版本(下载指定版本的代码)
以克隆proxmox旧版本内核为例:
- 打开https://github.com/proxmox/pve-kernel/branches/all ,查看所有版本
- 克隆指定的分支:git clone -b 分支名 仓库地址
git clone -b pve-kernel-5.4 https://github.com/proxmox/pve-kernel pve-kernel-5.4
3.点击 xxx commits
- git checkout 2aab2d3 到指定版本
总结:pve历史版本内核