git reset作用:版本退回,将代码恢复到已经提交的某一个版本中#将代码回退到某个指定的版本(版本号只要有前几位即可)git reset --hard 版本号 #将版本回退到上一次提交git reset --hard head~1