售前咨询:400-100-2938
要切换到旧版本,可以使用以下命令:
git log
找到想切换到的旧版本的commit hash。
使用以下命令切换到旧版本:
git checkout <commit-hash>
注意:切换到旧版本后,可以使用 git checkout master 命令切换回主分支。
git checkout master
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:Debian旧版本如何清理