摘要: 修改了本地的代码,然后使用: git add file git commit -m '修改原因' 执行commit后,还没执行push时,想要撤销这次的commit,该怎么办? 解决方案:使用命令: git reset --soft HEAD^ 这样就成功撤销了commit,如果想要连着add也撤销 阅读全文
posted @ 2022-03-10 10:51 蔚京霖 阅读(250) 评论(0) 推荐(0) 编辑