** git回滚未待提交的代码 ** 当我们提交了不想提交的文件的时候 取消提交文件 取消结果 右击项目 > 选择git > 选择Repository选项 > 选择Reset Head选项 将Reset Type 的类型改成Soft , 把To commit里的改成 HEAD^