1、tortoisegit
a、显示日志
b、选择某个时间点的代码,重置到这个版本,选择重置类型:硬重置
2、还原回来到某个版本
git reflog
git reset --hard xxxxxxxx 即还原到某个版本了。