IDEA可以恢复本地未提交的代码 解决方法:通过idea的Local History 查找 步骤 : 右击工程 - Local History - Show History - 通过左侧的历史轨迹,查找要回复的记录 选择要回退的版本,然后右击Revert