Undo last commit, but leave repository unchanged
This question already has an answer here:
只是为了那样的问题,我在~/.gitconfig文件中添加了以下别名: 
[alias]
undo = reset --soft HEAD^
上一篇: 如何撤消git push
下一篇: 撤消上次提交,但保持存储库不变
