摘要: git reset --hard 完全还原到上个节点(其他所有丢失) --mix 默认 回到commit前 --soft 回到add前 git reset --xx [节点号] 通过reflog查看节点号,直接回到节点号, --hard 也是工作区都不要, --mix,--soft 保留工作区的变化 阅读全文