项目右键->Git ->Show History 选择还原到哪个时间点 右键->点击Reset Current Branch to Here … 选择Hard,点击Reset,即可还原到指定的更新时间点的代码