git 当我们错误的提交了commit,想要回到提交commit之前,但又不想丢失自己的改变怎么办?

使用 git reset --soft

答案来源(高赞回答):https://stackoverflow.com/questions/22355612/how-to-undo-the-last-commit-in-git-but-keep-my-changes-as-unstaged

 

posted @ 2022-09-29 01:07  yinhuachen  阅读(38)  评论(0编辑  收藏  举报