恢复指定版本:查看所有版本号,从上到下为从新到旧:git log --pretty=oneline查看某版本修改的内容: git show codeVersion恢复到某版本: git reset --hard codeVersion