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